Skip to content

Commit c0a65f5

Browse files
committed
Fix precommit error
1 parent 019be81 commit c0a65f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ exclude = ["bench*", ".github*"]
101101

102102
[tool.ruff]
103103
line-length = 109
104-
# Raise complexity from the default 10 to 13
105-
complexity = 13
106104
extend-exclude = ["bench"]
107105

108106
[tool.ruff.lint]
@@ -118,7 +116,7 @@ extend-select = [
118116
"SIM",
119117
"TC",
120118
"UP",
121-
]
119+
"C901"] # enable complexity rule
122120
ignore = [
123121
"B028",
124122
"PT011",
@@ -132,3 +130,7 @@ ignore = [
132130

133131
[tool.ruff.lint.extend-per-file-ignores]
134132
"tests/**" = ["F841"]
133+
134+
[tool.ruff.lint.mccabe]
135+
# Raise complexity from the default 10 to 13
136+
max-complexity = 13

0 commit comments

Comments
 (0)