Skip to content

Commit

Permalink
Straight up strict mode for typing
Browse files Browse the repository at this point in the history
We already had strict mode enabled, and mypy happy passes with it as the
only option set. So lets make it the default for new projects.
  • Loading branch information
a-musing-moose committed Jul 25, 2024
1 parent dfb5e4c commit 37bdba9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions template/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ requires = ["poetry-core"]
strict = true
plugins = ["mypy_django_plugin.main"]

# disallow_any_unimported = true
check_untyped_defs = true
disallow_untyped_defs = true
no_implicit_optional = true

warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true

show_error_codes = true
show_traceback = true

[[tool.mypy.overrides]]
ignore_missing_imports = true
module = "environ"
Expand Down

0 comments on commit 37bdba9

Please sign in to comment.