chore: adhere to ruff's C (#2379)

This commit is contained in:
dni ⚡ 2024-04-03 17:56:05 +02:00 committed by GitHub
parent cd66b7d70c
commit e0b7d2f739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 43 additions and 41 deletions

View file

@ -164,7 +164,8 @@ extend-exclude = [
# W - pycodestyle warnings
# I - isort
# A - flake8-builtins
select = ["F", "E", "W", "I", "A"]
# C - mccabe
select = ["F", "E", "W", "I", "A", "C"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
@ -179,5 +180,5 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
"__init__.py" = ["F401", "F403"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
# TODO: Decrease this to 10.
max-complexity = 16