Skip to content

Commit

Permalink
Stricter mypy (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Sep 5, 2023
1 parent e012da2 commit 2f36712
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 57 deletions.
57 changes: 6 additions & 51 deletions {{cookiecutter.project_name}}/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pytest-timeout = "^2.1"
django-test-migrations = "^1.3"
hypothesis = "^6.84"

django-stubs = { version = "^4.2", extras = ["compatible-mypy"] }
django-stubs = { version = "^4.2.4", extras = ["compatible-mypy"] }

djlint = "^1.32"
yamllint = "^1.32"
Expand Down
8 changes: 3 additions & 5 deletions {{cookiecutter.project_name}}/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ addopts =
--fail-on-template-vars
# Output:
--tb=short
# Parallelism:
# -n auto
# --boxed
# Coverage:
--cov=server
--cov=tests
Expand Down Expand Up @@ -115,6 +112,8 @@ enable_error_code =
possibly-undefined,
redundant-self,

extra_checks = true

allow_redefinition = false
check_untyped_defs = true
disallow_untyped_decorators = true
Expand All @@ -127,7 +126,6 @@ ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
strict_concatenate = true
strict_equality = true
strict_optional = true
show_error_codes = true
Expand All @@ -142,7 +140,7 @@ plugins =
mypy_django_plugin.main

[mypy-server.apps.*.migrations.*]
# Django migrations should not produce any errors:
# Django migrations should not produce any errors (they are tested anyway):
ignore_errors = true

[mypy.plugins.django-stubs]
Expand Down

0 comments on commit 2f36712

Please sign in to comment.