style(repo): enable some more linting rules

This commit is contained in:
cswimr 2025-01-26 01:52:46 +00:00
parent e5210420cb
commit 06e678f26f
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -84,8 +84,8 @@ target-version = "py311"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default. # McCabe complexity (`C901`) by default.
select = ["F", "W", "E", "C901"] select = ["I", "N", "F", "W", "E", "G", "INP", "T20", "PLC", "PLE", "PLW", "PLR"]
ignore = ["C901"] ignore = ["PLR0912", "PLR0915", "PLR2004"]
# Allow fix for all enabled rules (when `--fix`) is provided. # Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"] fixable = ["ALL"]