-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
59 lines (55 loc) · 1.63 KB
/
pyproject.toml
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
[tool.black]
line-length = 88
target-version = ["py38", "py39", "py310", "py311", "py312"]
preview = true
[tool.pyright]
exclude = [
"**/__pycache__",
"**/node_modules",
"scripts/pdoc/original.py",
"scripts/pdoc/patched.py",
"bioimageio_cache",
"tests/old_*",
]
include = ["bioimageio", "scripts", "tests"]
pythonPlatform = "All"
pythonVersion = "3.12"
reportDuplicateImport = "error"
reportImplicitStringConcatenation = "error"
reportImportCycles = true
reportIncompatibleMethodOverride = true
reportMatchNotExhaustive = "error"
reportMissingSuperCall = "error"
reportMissingTypeArgument = true
reportMissingTypeStubs = "warning"
reportPropertyTypeMismatch = true
reportUninitializedInstanceVariable = "error"
reportUnknownMemberType = false
reportUnnecessaryIsInstance = false
reportUnnecessaryTypeIgnoreComment = "error"
reportUnsupportedDunderAll = "error"
reportUnusedCallResult = "error"
reportUnusedClass = "error"
reportUnusedExpression = "error"
reportUnusedFunction = "error"
reportUnusedImport = "error"
reportUnusedVariable = "error"
reportWildcardImportFromLibrary = "error"
strictDictionaryInference = true
strictListInference = true
strictSetInference = true
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
[tool.pytest.ini_options]
addopts = "--cov=bioimageio --cov-report=xml -n auto --capture=no --failed-first" # --doctest-modules
testpaths = ["bioimageio/spec", "tests", "scripts"]
[tool.ruff]
line-length = 88
target-version = "py312"
exclude = [
"bioimageio_cache",
"scripts/pdoc/original.py",
"scripts/pdoc/patched.py",
]
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:", "assert_never\\("]