Skip to content

Commit 5472ed9

Browse files
committed
Enhance CI workflow: ensure linters are installed and improve mypy error handling
1 parent eb20448 commit 5472ed9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ jobs:
2727
# Install runtime and test dependencies (skip dev extras that require ruff)
2828
python -m pip install -e .
2929
python -m pip install pytest pytest-asyncio pytest-json-report
30+
# Install linters required by the workflow
31+
python -m pip install black mypy
32+
# Optional: try to pre-install ruff (prefer binary) but don't fail if unavailable
33+
python -m pip install "ruff>=0.16.0" --prefer-binary --index-url https://pypi.org/simple || true
3034
- name: Run linters and type checks
3135
run: |
3236
# Ruff for linting (optional: skip if not installed)
3337
python -m ruff check . || echo "ruff not available; skipping ruff checks"
3438
# Black check
3539
python -m black --check .
3640
# Mypy type check
37-
python -m mypy src || echo "mypy failed or missing; check types locally"
41+
python -m mypy src
3842
- name: Run tests
3943
run: |
4044
python -m pytest -q

0 commit comments

Comments
 (0)