Skip to content

Commit

Permalink
chore(ruff): update config for 0.4.4
Browse files Browse the repository at this point in the history
Update section names, add UP031 to ignore (unfixable seemingly no longer
implies ignore).
  • Loading branch information
scop committed May 13, 2024
1 parent 2201762 commit c4d1588
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[tool.ruff]
target-version = "py37" # Oldest supported, need to mind older manually

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # Maybe sometime
"D203", # Ping/pong with D211
"D213", # Ping/pong with D212
"FA", # See what happens with PEP 649 impl first
"UP014", # Python >= 3.6
"UP031", # Python >= 3.6
"UP032", # Python >= 3.6
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
# (keep order of ignores here same as ^there for maintainability)
Expand All @@ -27,9 +31,7 @@ ignore = [
unfixable = [
"T20",
"UP031", # Fixes with Python >= 3.6 f-strings

]
target-version = "py37" # Oldest supported, need to mind older manually

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

0 comments on commit c4d1588

Please sign in to comment.