Skip to content

Commit

Permalink
MyPy: enable truthy-bool
Browse files Browse the repository at this point in the history
This catches mistakes in using a value as truthy if it cannot be falsey.
  • Loading branch information
DimitriPapadopoulos committed Aug 4, 2024
1 parent f29814c commit 41d92da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exclude = [
[tool.mypy]
disallow_untyped_defs = false
disallow_incomplete_defs = false
enable_error_code = ["ignore-without-code"]
enable_error_code = ["ignore-without-code", "truthy-bool"]
follow_imports = "normal"
ignore_missing_imports = true
pretty = true
Expand Down

0 comments on commit 41d92da

Please sign in to comment.