Skip to content

Commit

Permalink
Repo-Review: MY105: MyPy enables redundant-expr
Browse files Browse the repository at this point in the history
Must have "redundant-expr" in enable_error_code = [...]. This helps
catch useless lines of code, like checking the same condition twice.
  • Loading branch information
DimitriPapadopoulos committed May 7, 2024
1 parent 4ccd5f0 commit 3fc0e92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ warn_redundant_casts = true
warn_unused_ignores = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 3fc0e92

Please sign in to comment.