Skip to content

Commit 0872357

Browse files
committed
🚚 Move mypy verification from pre-commit to uv
1 parent 078c64c commit 0872357

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/test_code.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ jobs:
2828
uses: astral-sh/setup-uv@v6
2929
with:
3030
version: "0.8.3"
31-
- name: Run tests
31+
- name: Run pytest
3232
run: uv run --group test pytest
33+
- name: Run mypy
34+
run: uv run --group test mypy .

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,3 @@ repos:
2828
args: ["--fix", "--show-fixes"]
2929
# Run the formatter
3030
- id: ruff-format
31-
32-
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: "v1.17.0"
34-
hooks:
35-
- id: mypy
36-
args: ["--strict"]

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
def test_help():
1111
result = runner.invoke(app, ["--help"])
1212
expected_patterns = [
13-
"│ datasets\s+Manage datasets",
14-
"│ train",
13+
r"│ datasets\s+Manage datasets",
14+
r"│ train",
1515
]
1616
lines = result.output.split("\n")
1717
for pattern in expected_patterns:

0 commit comments

Comments
 (0)