diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a285a2d9..8f9d1cc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: - name: MyPy run: | - python -m pip install mypy + python -m pip install -e .[typing] mypy snowplow_tracker --exclude '/test' - name: Demo diff --git a/setup.py b/setup.py index 4b180da6..980af885 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,12 @@ ], install_requires=[ "requests>=2.25.1,<3.0", - "types-requests>=2.25.1,<3.0", "typing_extensions>=3.7.4", ], + extras_require={ + "typing": [ + "mypy>=1.11", + "types-requests>=2.25.1,<3.0", + ], + }, )