From 04d3ba4c473edf53f247bbfb926f135518822cc9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sat, 24 Oct 2020 01:18:29 -0700 Subject: [PATCH] Add mypy to github actions so we stop regressing. --- .github/workflows/build.yml | 3 +++ .github/workflows/release.yml | 3 +++ requirements.txt | 6 ++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d0da6a6..48e79b89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,9 @@ jobs: - name: Build binaries run: | ./venv/scripts/activate + mypy game + mypy gen + mypy theater $env:PYTHONPATH=".;./pydcs" pyinstaller pyinstaller.spec diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fad7bff..33d78ae3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,9 @@ jobs: - name: Build binaries run: | ./venv/scripts/activate + mypy game + mypy gen + mypy theater $env:PYTHONPATH=".;./pydcs" pyinstaller pyinstaller.spec diff --git a/requirements.txt b/requirements.txt index 12d48655..3ce6e8d3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,9 @@ -#pydcs>=0.9.10 Pyside2>=5.13.0 pyinstaller==3.6 pyproj==2.6.1.post1 Pillow~=7.2.0 -tabulate~=0.8.7 \ No newline at end of file +tabulate~=0.8.7 + +mypy==0.782 +mypy-extensions==0.4.3 \ No newline at end of file