-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (50 loc) · 1.44 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (50 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[project]
name = "clkpoc"
version = "0.0.0"
description = "Accurate GNSS Clock Proof of Concept"
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.11"
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-q -ra --strict-markers --strict-config --cov=src --cov-report=lcov:lcov.info --cov-fail-under=50"
testpaths = ["tests"]
python_files = ["test*.py"] # allow testTs.py
filterwarnings = ["error::DeprecationWarning"]
asyncio_mode = "auto" # pytest-asyncio: no need to sprinkle @pytest.mark.asyncio
[tool.coverage.report]
show_missing = true
[tool.coverage.run]
branch = true
source = ["src"]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "strict"
venvPath = "."
venv = "venv"
exclude = ["aux", "**/venv/**", "**/build/**", "**/.mypy_cache/**"]
typeStubPath = ["typings"]
useLibraryCodeForTypes = true
#reportMissingTypeStubs = false
[tool.mypy]
python_version = "3.11"
mypy_path = ["typings"]
warn_unused_ignores = true
warn_redundant_casts = true
warn_no_return = true
disallow_any_generics = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_equality = true
exclude = '(^venv/|/build/|/.mypy_cache/)'
[tool.ruff]
lint.select = ["E","F","I","UP","B"]
lint.ignore = ["N802","N803","N806"] # allow camelCase names
line-length = 100