Skip to content

Commit ce1d107

Browse files
authored
Fix CI: ignore C901 ("<some_func> is to complex") in ruff (#5636)
* ignore C901 (to complex ...) * update ruff version in pre-commit config * remove C901 from black rules
1 parent fc5c84f commit ce1d107

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
stages: [commit]
99
args: ["--config", "pyproject.toml", "tests", "src", "benchmarks", "metrics"]
1010
- repo: https://github.com/charliermarsh/ruff-pre-commit
11-
rev: 'v0.0.247'
11+
rev: 'v0.0.255'
1212
hooks:
1313
- id: ruff
1414
stages: [commit]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ target_version = ['py37']
66
# Ignored rules:
77
# "E501" -> line length violation
88
# "F821" -> undefined named in type annotation (e.g. Literal["something"])
9-
ignore = ["E501", "F821"]
9+
# "C901" -> `function_name` is too complex
10+
ignore = ["E501", "F821", "C901"]
1011
select = ["C", "E", "F", "I", "W"]
1112
line-length = 119
1213

0 commit comments

Comments
 (0)