Skip to content

Commit 355f247

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 ea4dc84 commit 355f247

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ source = [
7777
show_missing = true
7878

7979
[tool.mypy]
80+
enable_error_code = [
81+
"ignore-without-code",
82+
"redundant-expr",
83+
"truthy-bool",
84+
]
8085
mypy_path = "src/"
8186
namespace_packages = false
82-
show_error_codes = true
8387
strict = true
8488
warn_unreachable = true
8589

0 commit comments

Comments
 (0)