Skip to content

Commit 1e79b26

Browse files
rgommersdnicolodi
authored andcommitted
DEV: remove mccabe code complexity check from the ruff config
It has given issues a couple of times that take time to resolve, and the complaints it emits seem unjustified at least in some cases. So remove it - relying on code review is fine here.
1 parent 0397288 commit 1e79b26

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def _string_or_strings(value: Any, name: str) -> List[str]:
603603
class Project():
604604
"""Meson project wrapper to generate Python artifacts."""
605605

606-
def __init__( # noqa: C901
606+
def __init__(
607607
self,
608608
source_dir: Path,
609609
build_dir: Path,

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ extend-ignore = [
8282
select = [
8383
'B', # flake8-bugbear
8484
'C4', # flake8-comprehensions
85-
'C9', # mccabe
8685
'E', # pycodestyle
8786
'F', # pyflakes
8887
'W', # pycodestyle
@@ -92,10 +91,6 @@ exclude = [
9291
'docs/conf.py',
9392
]
9493

95-
[tool.ruff.mccabe]
96-
max-complexity = 12
97-
98-
9994
[tool.isort]
10095
lines_between_types = 1
10196
lines_after_imports = 2

0 commit comments

Comments
 (0)