Skip to content

Commit

Permalink
Enable strict mypy checking in pyproject.toml
Browse files Browse the repository at this point in the history
Added new settings under `[tool.mypy]` in the `pyproject.toml` file to enable strict type checking. These changes will now warn of unreachable code, show pretty output, column numbers, error codes, and error context to improve development productivity and code health.
  • Loading branch information
Altay Sansal committed Feb 29, 2024
1 parent a55e3c9 commit 9e8f24e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ exclude_also = [
"if TYPE_CHECKING:",
]

[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true

[build-system]
requires = ["poetry-core", "fastentrypoints"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 9e8f24e

Please sign in to comment.