Skip to content

Commit 3a94da0

Browse files
committed
Run Pylint for tests too
1 parent e0bfb79 commit 3a94da0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/pylint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Install dependencies
2121
run: uv sync
2222
- name: Python linter
23-
run: uv run pylint src
23+
run: uv run pylint src tests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ black:
6060
uv run black --check .
6161

6262
pylint:
63-
uv run pylint src
63+
uv run pylint src tests
6464

6565
pyright:
6666
uv run pyright src

tests/unit/models/test_responses.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def test_constructor_fields_required(self) -> None:
6565
AuthorizedResponse(username="testuser") # pyright: ignore
6666

6767
with pytest.raises(ValidationError):
68-
AuthorizedResponse(user_id="123e4567-e89b-12d3-a456-426614174000") # pyright: ignore
68+
AuthorizedResponse(
69+
user_id="123e4567-e89b-12d3-a456-426614174000"
70+
) # pyright: ignore
6971

7072

7173
class TestUnauthorizedResponse:

0 commit comments

Comments
 (0)