Skip to content

Commit 5631a0f

Browse files
authored
Merge pull request #143 from scop/renovate/ruff
chore(pre-commit): update ruff to v0.4.4
2 parents 533047a + c4d1588 commit 5631a0f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.1.6
3+
rev: v0.4.4
44
hooks:
55
- id: ruff
66
- id: ruff-format

pyproject.toml

+5-3
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"]

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
mypy==1.0.1
55
nox
6-
ruff==0.1.6
6+
ruff==0.4.4

0 commit comments

Comments
 (0)