Skip to content

Commit

Permalink
Enable/Enforce type checks + complexity checker
Browse files Browse the repository at this point in the history
  • Loading branch information
farridav committed Mar 25, 2024
1 parent 999d769 commit f2fc363
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,29 @@ norecursedirs = ".git .tox _resource .mypy_cache build dist docs"
DJANGO_SETTINGS_MODULE = "tests.test_app.library.settings"
FAIL_INVALID_TEMPLATE_VARS = 1

[tool.mypy]
python_version = "3.11"
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
warn_no_return = true
warn_return_any = true
plugins = []

[tool.flake8]
max-complexity = 10
ignore = ["C901", "W504", "W503", "E231", "E203"]
# ignore = ["C901", "W504", "W503", "E231", "E203"]
exclude = [".git", ".tox", "_resource", "migrations", "build", "dist", "docs"]
max-line-length = 120
show-source = true
Expand Down

0 comments on commit f2fc363

Please sign in to comment.