From 9029122d4fe6578e001e4a64e2ab58f43f60e25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sat, 9 Oct 2021 09:26:44 +0200 Subject: [PATCH] fixup workflow --- .github/workflows/type-checking.yaml | 12 ++---------- setup.cfg | 7 +++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/type-checking.yaml b/.github/workflows/type-checking.yaml index c50e7f8e8e4..51f9fc4e88a 100644 --- a/.github/workflows/type-checking.yaml +++ b/.github/workflows/type-checking.yaml @@ -29,18 +29,10 @@ jobs: with: python-version: '3.9' - - name: Install mypy + - name: Build yt + type check deps run: | python3 -m pip install --upgrade pip - python3 -m pip install mypy==0.910 - python3 -m pip install types-PyYAML - python3 -m pip install types-toml - python3 -m pip install types-requests - python3 -m pip install types-chardet - python3 -m pip install types-setuptools - - - name: Build yt - run: python3 -m pip install -e .[test] + python3 -m pip install -e .[typecheck] - name: Run mypy run: mypy yt diff --git a/setup.cfg b/setup.cfg index ff83ff862a3..10b6cbb72a4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -107,6 +107,13 @@ test = nose-timer~=1.0.0 pytest>=6.1 pytest-xdist~=2.1.0 +typecheck = + mypy==0.910 + types-PyYAML==5.4.10 + types-chardet==4.0.0 + types-requests==2.25.9 + types-setuptools==57.4.0 + types-toml==0.10.0 [flake8] max-line-length = 88