Skip to content

Commit f2fc363

Browse files
committed
Enable/Enforce type checks + complexity checker
1 parent 999d769 commit f2fc363

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

pyproject.toml

+21-1
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,29 @@ norecursedirs = ".git .tox _resource .mypy_cache build dist docs"
8080
DJANGO_SETTINGS_MODULE = "tests.test_app.library.settings"
8181
FAIL_INVALID_TEMPLATE_VARS = 1
8282

83+
[tool.mypy]
84+
python_version = "3.11"
85+
disallow_any_generics = true
86+
disallow_untyped_calls = true
87+
disallow_untyped_defs = true
88+
disallow_untyped_decorators = true
89+
ignore_errors = false
90+
ignore_missing_imports = true
91+
implicit_reexport = false
92+
strict_optional = true
93+
strict_equality = true
94+
no_implicit_optional = true
95+
warn_unused_ignores = true
96+
warn_redundant_casts = true
97+
warn_unused_configs = true
98+
warn_unreachable = true
99+
warn_no_return = true
100+
warn_return_any = true
101+
plugins = []
102+
83103
[tool.flake8]
84104
max-complexity = 10
85-
ignore = ["C901", "W504", "W503", "E231", "E203"]
105+
# ignore = ["C901", "W504", "W503", "E231", "E203"]
86106
exclude = [".git", ".tox", "_resource", "migrations", "build", "dist", "docs"]
87107
max-line-length = 120
88108
show-source = true

0 commit comments

Comments
 (0)