From a82dcb712a6a97b8789b17c98cac8eafaffe90f5 Mon Sep 17 00:00:00 2001 From: Adam Kelly Date: Tue, 8 Jun 2021 18:16:43 -0700 Subject: [PATCH] Install types for mypy --- .github/workflows/upload-pypi-source.yml | 5 +++-- mypy.ini | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload-pypi-source.yml b/.github/workflows/upload-pypi-source.yml index a5f71ba858f4..33da34a4a3b5 100644 --- a/.github/workflows/upload-pypi-source.yml +++ b/.github/workflows/upload-pypi-source.yml @@ -48,6 +48,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install pytest flake8 mypy + mypy --cache-dir=/tmp/mypy_cache --install-types - name: Lint source with flake8 run: | @@ -55,8 +56,8 @@ jobs: - name: Lint source with mypy run: | - mypy --exclude config.py tests - mypy chia + mypy --cache-dir=/tmp/mypy_cache --exclude config.py tests + mypy --cache-dir=/tmp/mypy_cache chia - name: Build source distribution run: | diff --git a/mypy.ini b/mypy.ini index 8a8fdcb554a2..5632f179cd5f 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,6 @@ [mypy] ignore_missing_imports = True +incremental = True [mypy - lib] ignore_errors = True