Skip to content

Commit c4d1588

Browse files
committed
chore(ruff): update config for 0.4.4
Update section names, add UP031 to ignore (unfixable seemingly no longer implies ignore).
1 parent 2201762 commit c4d1588

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
@@ -1,11 +1,15 @@
11
[tool.ruff]
2+
target-version = "py37" # Oldest supported, need to mind older manually
3+
4+
[tool.ruff.lint]
25
select = ["ALL"]
36
ignore = [
47
"ANN", # Maybe sometime
58
"D203", # Ping/pong with D211
69
"D213", # Ping/pong with D212
710
"FA", # See what happens with PEP 649 impl first
811
"UP014", # Python >= 3.6
12+
"UP031", # Python >= 3.6
913
"UP032", # Python >= 3.6
1014
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
1115
# (keep order of ignores here same as ^there for maintainability)
@@ -27,9 +31,7 @@ ignore = [
2731
unfixable = [
2832
"T20",
2933
"UP031", # Fixes with Python >= 3.6 f-strings
30-
3134
]
32-
target-version = "py37" # Oldest supported, need to mind older manually
3335

34-
[tool.ruff.per-file-ignores]
36+
[tool.ruff.lint.per-file-ignores]
3537
"test_*.py" = ["S101"]

0 commit comments

Comments
 (0)