1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-30 07:09:39 +03:00

mypy: Add script to run against all, and use in github/push-checks

This commit is contained in:
Athanasius 2022-12-23 15:06:47 +00:00
parent 99858116e5
commit 841ae2006e
No known key found for this signature in database
GPG Key ID: 772697E181BB2767
2 changed files with 8 additions and 0 deletions

View File

@ -59,3 +59,7 @@ jobs:
grep -E -z -Z '\.py$' | \
xargs -0 flake8 --count --statistics --extend-ignore D
#######################################################################
- name: mypy type checks
run: |
./scripts/mypy-all.sh

4
scripts/mypy-all.sh Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
#
mypy $(git ls-tree --full-tree -r --name-only HEAD | grep -E '\.py$')