Skip to content

Commit

Permalink
run mypy as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnorobo committed Aug 28, 2023
1 parent 272884f commit a159b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
# Get all files with find because ** doesn't expand correctly.
# Run mypy twice, once to find missing stub packeges, then again after installing them.
run: |
find . -iname '*.py' | xargs mypy --namespace-packages --explicit-package-bases || true
yes | mypy --install-types
find . -iname '*.py' | xargs mypy --namespace-packages --explicit-package-bases
find . -iname '*.py' | xargs python -m mypy --namespace-packages --explicit-package-bases || true
yes | python -m mypy --install-types
find . -iname '*.py' | xargs python -m mypy --namespace-packages --explicit-package-bases
- name: Check formatting with yapf
run: |
yapf --diff --recursive .
Expand Down

0 comments on commit a159b33

Please sign in to comment.