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
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user