Skip to content

Commit ee95b8f

Browse files
committed
TYP Configure mypy and pyright in strict mode
1 parent d8d2cfb commit ee95b8f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,26 @@ classifiers = [
2222
"Programming Language :: Python :: 3.12",
2323
"Programming Language :: Python :: 3.13",
2424
"Topic :: Software Development :: Libraries :: Python Modules",
25+
"Typing :: Typed",
2526
]
2627

2728
[tool.black]
2829
line-length = 88
2930
target_version = ['py39', 'py310', 'py311', 'py312', 'py313']
3031
preview = true
32+
33+
[tool.mypy]
34+
exclude = ["benchmarks", "continuous_integration", "tests"]
35+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
36+
strict = true
37+
warn_unreachable = true
38+
local_partial_types = true
39+
allow_redefinition_new = true
40+
41+
[tool.pyright]
42+
exclude = ["benchmarks", "continuous_integration", "tests"]
43+
ignore = [".venv"]
44+
stubPath = "."
45+
typeCheckingMode = "strict"
46+
reportPrivateUsage = false
47+
reportConstantRedefinition = false

0 commit comments

Comments
 (0)