Skip to content

Commit 9649037

Browse files
committed
Explicitly call ruff check
Now that ruff includes an autoformatter, `ruff <path>` is deprecated -- you must instead use `ruff check`.
1 parent 5cf6c6d commit 9649037

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
fail-fast: false
99
matrix:
1010
command:
11-
- "ruff ."
11+
- "ruff check ."
1212
- "ruff format --check ws"
1313
- "mypy ws"
1414
- "pylint --jobs=0 ws"

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ check: lint test
5353
.PHONY: fix
5454
fix: install-python-dev
5555
poetry run ruff format .
56-
poetry run ruff --fix .
56+
poetry run ruff check --fix .
5757

5858
.PHONY: lint
5959
lint: lint-python typecheck-python lint-js
6060

6161
.PHONY: lint-python
6262
lint-python: install-python-dev
6363
poetry run ruff format --check .
64-
poetry run ruff .
64+
poetry run ruff check .
6565
poetry run pylint --jobs 0 ws # '0' tells pylint to auto-detect available processors
6666

6767
.PHONY: typecheck-python

ws/tests/views/test_api_views.py

-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ def _expect_members(self, *expected_members: MemberInfo) -> None:
647647
response = self.client.get("/stats/membership.json")
648648
resp_json = response.json()
649649
self.assertCountEqual(resp_json, {"members"})
650-
# self.assertEqual(len(resp_json['members'], len(expected_members)))
651650
self.assertCountEqual(resp_json["members"], expected_members)
652651

653652
@responses.activate

ws/utils/geardb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def update_affiliation(participant: models.Participant) -> requests.Response | N
269269

270270

271271
def _stats_only_all_active_members() -> list[MembershipInformation]:
272-
"""Yield emails and rental activity for all members with current dues."""
272+
"""Report emails & rental activity for all members with current dues."""
273273

274274
return [
275275
MembershipInformation(

0 commit comments

Comments
 (0)