Skip to content

Commit

Permalink
Merge pull request #143 from scop/renovate/ruff
Browse files Browse the repository at this point in the history
chore(pre-commit): update ruff to v0.4.4
  • Loading branch information
scop authored May 13, 2024
2 parents 533047a + c4d1588 commit 5631a0f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.4.4
hooks:
- id: ruff
- id: ruff-format
Expand Down
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"]
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

mypy==1.0.1
nox
ruff==0.1.6
ruff==0.4.4

0 comments on commit 5631a0f

Please sign in to comment.