fix: use python -m to invoke ruff and mypy in CI
Some checks failed
CI / test (push) Failing after 5m21s
CI / lint (push) Successful in 5s
CI / typecheck (push) Successful in 9s

This commit is contained in:
2026-01-30 20:13:50 +00:00
parent b5e0098987
commit b1c632907f

View File

@@ -29,12 +29,12 @@ jobs:
- name: Run type checking - name: Run type checking
run: | run: |
pip install mypy pip install mypy
mypy src/codexchange/ --ignore-missing-imports python -m mypy src/codexchange/ --ignore-missing-imports
- name: Run linting - name: Run linting
run: | run: |
pip install ruff pip install ruff
ruff check src/codexchange/ tests/ python -m ruff check src/codexchange/ tests/
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -50,7 +50,7 @@ jobs:
run: pip install ruff run: pip install ruff
- name: Run linter - name: Run linter
run: ruff check src/codexchange/ tests/ run: python -m ruff check src/codexchange/ tests/
typecheck: typecheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -66,4 +66,4 @@ jobs:
run: pip install mypy run: pip install mypy
- name: Run type checker - name: Run type checker
run: mypy src/codexchange/ --ignore-missing-imports run: python -m mypy src/codexchange/ --ignore-missing-imports