Skip to content

Commit 151ef89

Browse files
committed
Update ruff
1 parent 75d54c2 commit 151ef89

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ ci:
44

55
repos:
66
- repo: https://github.com/psf/black
7-
rev: 24.1.0
7+
rev: 24.1.1
88
hooks:
99
- id: black
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.1.14
12+
rev: v0.2.0
1313
hooks:
1414
- id: ruff
1515
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ toplevel = ["attr", "attrs"]
164164
[tool.ruff]
165165
src = ["src", "tests", "conftest.py", "docs"]
166166

167+
[tool.lint.ruff]
167168
select = ["ALL"]
168169
ignore = [
169170
"A001", # shadowing is fine
@@ -185,7 +186,6 @@ ignore = [
185186
"PLR0911", # we're complex software
186187
"PLR0912", # we're complex software
187188
"PLR0915", # we're complex software
188-
"PGH001", # eval FTW
189189
"S307", # eval FTW
190190
"N807", # we need to create functions that start with __
191191
"ERA001", # we need to keep around some notes
@@ -197,7 +197,7 @@ ignore = [
197197
"TRY301", # I'm sorry, but this makes not sense for us.
198198
]
199199

200-
[tool.ruff.per-file-ignores]
200+
[tool.ruff.lint.per-file-ignores]
201201
"**/test_*" = [
202202
"ARG005", # we need stub lambdas
203203
"S",
@@ -233,7 +233,7 @@ ignore = [
233233
"UP037", # we test some older syntaxes on purpose
234234
]
235235

236-
[tool.ruff.isort]
236+
[tool.ruff.lint.isort]
237237
lines-between-types = 1
238238
lines-after-imports = 2
239239
known-first-party = ["attr", "attrs"]

0 commit comments

Comments
 (0)