From 8d1d8013899e110c03c50c1f66a7b9c0b51f8383 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 22 Jun 2021 11:08:21 -0700 Subject: [PATCH] mypy tweaks, refs #289, #266, #37 --- .github/workflows/test.yml | 3 +-- setup.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 012db32..2e19e61 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,8 +25,7 @@ jobs: ${{ runner.os }}-pip- - name: Install dependencies run: | - pip install -e '.[test]' - pip install mypy + pip install -e '.[test,mypy]' - name: Optionally install numpy if: matrix.numpy == 1 run: pip install numpy diff --git a/setup.py b/setup.py index 626409e..a356f30 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ setup( extras_require={ "test": ["pytest", "black", "hypothesis"], "docs": ["sphinx_rtd_theme", "sphinx-autobuild"], + "mypy": ["mypy", "types-click", "types-tabulate"], }, entry_points=""" [console_scripts]