Skip to content

Commit 5bbda77

Browse files
committed
Enable/Enforce type checks + complexity checker
1 parent fec67a0 commit 5bbda77

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
@@ -79,9 +79,29 @@ norecursedirs = ".git .tox _resource .mypy_cache build dist docs"
7979
DJANGO_SETTINGS_MODULE = "tests.test_app.library.settings"
8080
FAIL_INVALID_TEMPLATE_VARS = 1
8181

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

0 commit comments

Comments
 (0)