fix: use python -m to invoke ruff and mypy in CI
This commit is contained in:
@@ -29,12 +29,12 @@ jobs:
|
||||
- name: Run type checking
|
||||
run: |
|
||||
pip install mypy
|
||||
mypy src/codexchange/ --ignore-missing-imports
|
||||
python -m mypy src/codexchange/ --ignore-missing-imports
|
||||
|
||||
- name: Run linting
|
||||
run: |
|
||||
pip install ruff
|
||||
ruff check src/codexchange/ tests/
|
||||
python -m ruff check src/codexchange/ tests/
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
run: pip install ruff
|
||||
|
||||
- name: Run linter
|
||||
run: ruff check src/codexchange/ tests/
|
||||
run: python -m ruff check src/codexchange/ tests/
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -66,4 +66,4 @@ jobs:
|
||||
run: pip install mypy
|
||||
|
||||
- name: Run type checker
|
||||
run: mypy src/codexchange/ --ignore-missing-imports
|
||||
run: python -m mypy src/codexchange/ --ignore-missing-imports
|
||||
|
||||
Reference in New Issue
Block a user