chg: ruff - mccabe (CC>21)

This commit is contained in:
Bharath Vignesh J K 2024-05-17 03:03:16 +05:30
parent 1f628642d4
commit f9a06a31f0
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ quote-style = "preserve"
[tool.ruff.lint] [tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [ select = [
# "C90", # mccabe "C90", # mccabe
"E", # pycodestyle "E", # pycodestyle
"F", # Pyflakes "F", # Pyflakes
"I", # isort "I", # isort
@ -63,4 +63,4 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe] [tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10. # Unlike Flake8, default to a complexity level of 10.
max-complexity = 18 max-complexity = 21