Skip to content

Enable strict and subtract options #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Enable strict and subtract options
If you weren't aware this achieves the same effect, and a bit easier to keep up-to-date https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
  • Loading branch information
paddyroddy authored Nov 17, 2023
commit 1ae17a55d3ef52efc38a71a3bcfc83bcbe5c07e7
13 changes: 1 addition & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,8 @@ convention = "numpy"
[tool.mypy]
python_version = "3.9"
# Block below are checks that form part of mypy 'strict' mode
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
strict_concatenate = true
check_untyped_defs = true
strict = true
disallow_subclassing_any = false # TODO: fix
disallow_untyped_decorators = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_reexport = true
warn_return_any = false # TODO: fix
ignore_missing_imports = true

Expand Down