Skip to content

Commit

Permalink
Set mypy strict=false, with specific individual disables to allow it.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Nov 20, 2024
1 parent 0255583 commit cdb78f5
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,32 @@ ignore = [

[tool.mypy]
# See https://mypy.readthedocs.io/en/stable/config_file.html
ignore_missing_imports = true

# Extra checks we have chosen to enable.
warn_unused_configs = true
warn_unreachable = true
enable_error_code = ["ignore-without-code", "truthy-bool"]

# Checks we have temporarily *disabled*
# NOTE:
# * Some of these settings are also disabled by "strict = false"
# * See "$ mypy --help" for which
# * Given these settings, "strict = true" generates no errors
# TODO: all of these should eventually be removed
disallow_any_generics = false # 5 errors
disallow_subclassing_any = false # 14 errors
disallow_untyped_calls = false # 8 errors
disallow_untyped_defs = false # 964 errors
disallow_incomplete_defs = false # 3 errors
check_untyped_defs = false # 101 errors
ignore_missing_imports = true # 272 errors
no_implicit_reexport = false # 131 errors

exclude = [
'noxfile\.py',
'docs/conf\.py'
]
strict = false # Default value, make true when introducing type hinting.
strict = true # Default value, make true when introducing type hinting.

[tool.pytest.ini_options]
# See https://docs.pytest.org/en/stable/reference/customize.html
Expand Down

0 comments on commit cdb78f5

Please sign in to comment.