Skip to content

Commit e84c348

Browse files
authored
Enable truethy-bool in mypy by default (#183)
* Enable `truethy-bool` in mypy by default https://mypy.readthedocs.io/en/stable/error_code_list2.html#check-that-expression-is-not-implicitly-true-in-boolean-context-truthy-bool background: pylint-dev/pylint#9502 (comment) * I hate ̷y̷a̷m̷l̷ toml
1 parent a6d4a82 commit e84c348

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ profile = "black"
3434
[tool.pylint."MESSAGES CONTROL"]
3535
max-line-length = 120
3636

37+
[mypy]
38+
truethy-bool = true
39+
3740
[build-system]
3841
requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
3942
build-backend = "hatchling.build"
4043

41-
42-
4344
[tool.hatch.metadata.hooks.fancy-pypi-readme]
4445
content-type = "text/markdown"
4546
fragments = [{ path = "README.md" }]

0 commit comments

Comments
 (0)