Skip to content

Commit 264e051

Browse files
authored
Explicit mccabe complexity limit (#829)
1 parent e613ae8 commit 264e051

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

{{ cookiecutter.name }}/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ combine-as-imports = true
160160
known-first-party = ["src"]
161161
lines-after-imports = 2
162162

163+
[tool.ruff.lint.mccabe]
164+
max-complexity = 6
165+
163166
[tool.ruff.lint.per-file-ignores]
164167
"*/factory.py" = [
165168
"ANN", # flake8-annotations

0 commit comments

Comments
 (0)