mirror of https://github.com/nicolargo/glances.git
chg: ruff - mccabe (CC>21)
This commit is contained in:
parent
1f628642d4
commit
f9a06a31f0
|
|
@ -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
|
||||||
Loading…
Reference in New Issue