-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
57 lines (51 loc) · 1.12 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.bandit]
skips = ["B101"]
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [
"*.egg",
".git",
".*",
"_*"
]
[tool.coverage.run]
source = ["src"]
omit = [
"src/riskfactor.pshell.py",
"src/riskfactor/types.py",
"src/riskfactor/*/types.py"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: unreachable",
"assert_never[(]",
"@overload",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__."
]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = false
namespace_packages = true
disallow_any_generics = true
disallow_untyped_defs = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
plugins = ["mypy_zope.plugin"]
exclude = "/(static/.+)/"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/stubs"
[[tool.mypy.overrides]]
module = [
"plaster.*",
"pyramid.*",
"pyramid_beaker.*",
"pyramid_layout.*",
]
ignore_missing_imports = true
disallow_untyped_defs = false