Skip to content

Commit 88d2b77

Browse files
committed
tooling: Lower Pylint complexity thresholds in ruff.
1 parent 8ca9e5b commit 88d2b77

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,21 @@ ignore = [
9696
known-third-party = ["micropython"]
9797

9898
[tool.ruff.lint.mccabe]
99-
max-complexity = 61
99+
max-complexity = 25
100100

101101
[tool.ruff.lint.pylint]
102102
allow-magic-value-types = ["bytes", "int", "str"]
103-
max-args = 14
104-
max-branches = 58
105-
max-returns = 13
106-
max-statements = 166
103+
max-args = 10
104+
max-branches = 25
105+
max-returns = 8
106+
max-statements = 65
107107

108108
[tool.ruff.lint.per-file-ignores]
109109
# manifest.py files are evaluated with some global names pre-defined
110110
"**/manifest.py" = ["F821"]
111111
"**/examples/*.py" = ["T20", "N806"]
112112
"lib/mcp23009e/examples/i2c_scan.py" = ["PERF203"]
113-
"tests/**/*.py" = ["T20"]
113+
"tests/**/*.py" = ["T20", "PLR0911", "PLR0912", "PLR0915"]
114114

115115
[tool.ruff.format]
116116
quote-style = "double"

0 commit comments

Comments
 (0)