Skip to content

Commit 9821d2e

Browse files
authored
chore(deps,tooling): update ruff rules, bump ruff version (#2210)
1 parent 6262592 commit 9821d2e

File tree

2 files changed

+62
-26
lines changed

2 files changed

+62
-26
lines changed

pyproject.toml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ Changelog = "https://eest.ethereum.org/main/CHANGELOG/"
6161

6262
[project.optional-dependencies]
6363
test = ["pytest-cov>=4.1.0,<5"]
64-
lint = ["ruff==0.11.8", "mypy>=1.15.0,<1.16", "types-requests>=2.31,<2.33"]
64+
lint = [
65+
"ruff==0.13.2",
66+
"mypy>=1.15.0,<1.16",
67+
"types-requests>=2.31,<2.33",
68+
]
6569
docs = [
6670
"cairosvg>=2.7.0,<3",
6771
"codespell>=2.4.1,<3",
@@ -128,9 +132,40 @@ ethereum_test_forks = ["forks/contracts/*.bin"]
128132
line-length = 99
129133

130134
[tool.ruff.lint]
131-
select = ["E", "F", "B", "W", "I", "A", "N", "D", "C", "ARG001"]
132-
fixable = ["I", "B", "E", "F", "W", "D", "C"]
133-
ignore = ["D200", "D205", "D203", "D212", "D415", "C420", "C901"]
135+
select = [
136+
"E", # pycodestyle errors
137+
"F", # Pyflakes
138+
"B", # flake8-bugbear
139+
"W", # pycodestyle warnings
140+
"I", # isort
141+
"A", # flake8-builtins
142+
"N", # pep8-naming
143+
"D", # pydocstyle
144+
"C4", # flake8-comprehensions
145+
"ARG", # flake8-unused-arguments
146+
]
147+
fixable = [
148+
"E", # pycodestyle errors
149+
"F", # Pyflakes
150+
"B", # flake8-bugbear
151+
"W", # pycodestyle warnings
152+
"I", # isort
153+
"D", # pydocstyle
154+
]
155+
ignore = [
156+
"C401", # Unnecessary generator set
157+
"C408", # Unnecessary collection call
158+
"D107", # Missing docstring in __init__
159+
"D200", # One-line docstring should fit on one line with quotes
160+
"D203", # 1 blank line required before class docstring
161+
"D205", # Missing blank line after summary
162+
"D212", # Multi-line docstring summary should start at the first line
163+
"D401", # First line should be in imperative mood ("Do", not "Does")
164+
# TODO: ethereum/execution-spec-tests#2176
165+
"ARG002", # unused-method-argument
166+
"ARG003", # unused-class-method-argument
167+
"ARG005", # unused-lambda-argument
168+
]
134169

135170
[tool.ruff.lint.per-file-ignores]
136171
"tests/*" = ["ARG001"] # TODO: ethereum/execution-spec-tests#2188

uv.lock

Lines changed: 23 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)