Skip to content

Commit

Permalink
Use ruff check, pin ruff requirement to a version that has `ruff …
Browse files Browse the repository at this point in the history
…check`
  • Loading branch information
akx committed Jul 29, 2024
1 parent 5d8b32c commit fd86922
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ clean:
rm -fr *.egg-info

lint:
$(RUFF) $(PROJECT_NAME)
$(RUFF) check $(PROJECT_NAME)

check:
$(PYTEST) $(PROJECT_NAME) $(PYTEST_ARGS) --cov-report= --cov=pygal
Expand Down
4 changes: 3 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[lint]
extend-select = [
"E",
"F",
Expand All @@ -10,13 +11,14 @@ extend-select = [
]

ignore = [
"E721", # TODO: do not ignore?
"E731",
"E741",
"PLW2901", # TODO: do not ignore?
"PLW3301", # TODO: do not ignore?
]

[per-file-ignores]
[lint.per-file-ignores]
"pygal/__init__.py" = [
"E402",
"F401",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"pyquery",
"pytest",
"pytest-cov",
"ruff",
"ruff>=0.5.5",
]

moulinrouge_requirements = [
Expand Down

0 comments on commit fd86922

Please sign in to comment.