Skip to content

Commit fd86922

Browse files
committed
Use ruff check, pin ruff requirement to a version that has ruff check
1 parent 5d8b32c commit fd86922

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ clean:
1313
rm -fr *.egg-info
1414

1515
lint:
16-
$(RUFF) $(PROJECT_NAME)
16+
$(RUFF) check $(PROJECT_NAME)
1717

1818
check:
1919
$(PYTEST) $(PROJECT_NAME) $(PYTEST_ARGS) --cov-report= --cov=pygal

ruff.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[lint]
12
extend-select = [
23
"E",
34
"F",
@@ -10,13 +11,14 @@ extend-select = [
1011
]
1112

1213
ignore = [
14+
"E721", # TODO: do not ignore?
1315
"E731",
1416
"E741",
1517
"PLW2901", # TODO: do not ignore?
1618
"PLW3301", # TODO: do not ignore?
1719
]
1820

19-
[per-file-ignores]
21+
[lint.per-file-ignores]
2022
"pygal/__init__.py" = [
2123
"E402",
2224
"F401",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"pyquery",
3131
"pytest",
3232
"pytest-cov",
33-
"ruff",
33+
"ruff>=0.5.5",
3434
]
3535

3636
moulinrouge_requirements = [

0 commit comments

Comments
 (0)