Skip to content

Commit

Permalink
Repo-Review: MY106: MyPy enables truthy-bool
Browse files Browse the repository at this point in the history
Must have "truthy-bool" in enable_error_code = []. This catches
mistakes in using a value as truthy if it cannot be falsey.
  • Loading branch information
DimitriPapadopoulos committed Mar 12, 2024
1 parent 796bdb5 commit 9c6991e
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 @@ -126,6 +126,7 @@ warn_unused_ignores = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 9c6991e

Please sign in to comment.