Skip to content

Commit

Permalink
Improve MyPy configuration
Browse files Browse the repository at this point in the history
Some improvments flagged by Repo-Review: https://learn.scientific-python.org/development/guides/repo-review/

1. Remove now-default show_error_codes.
2. Enable some optional error codes with extra checks.
  • Loading branch information
adamchainz committed Jun 19, 2024
1 parent b0ca640 commit 040a757
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ source = [
show_missing = true

[tool.mypy]
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
mypy_path = "src/"
namespace_packages = false
show_error_codes = true
strict = true
warn_unreachable = true

Expand Down

0 comments on commit 040a757

Please sign in to comment.