Skip to content

Commit fb38a47

Browse files
committed
Improve MyPy configuration
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.
1 parent 5eccf1a commit fb38a47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,13 @@ source = [
7474
show_missing = true
7575

7676
[tool.mypy]
77+
enable_error_code = [
78+
"ignore-without-code",
79+
"redundant-expr",
80+
"truthy-bool",
81+
]
7782
mypy_path = "src/"
7883
namespace_packages = false
79-
show_error_codes = true
8084
strict = true
8185
warn_unreachable = true
8286

0 commit comments

Comments
 (0)