From 7ce7c60e74d774dcc1476222324699a0ce3af689 Mon Sep 17 00:00:00 2001 From: Ruud de Jong Date: Mon, 4 Mar 2024 19:26:58 +0100 Subject: [PATCH] 34 do typing checks on all python versions (#35) * Added mypy matrix * Added mypy matrix --- .github/workflows/test.yml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82d778b..34e4217 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: run: hatch run style:check - name: Check types - run: hatch run types:check + run: hatch run types.py${{ matrix.python-version }}:check - name: Run static analysis run: hatch fmt --check diff --git a/pyproject.toml b/pyproject.toml index 3a62d5d..3efcb65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,9 @@ cov = [ "cov-report", ] +[[tool.hatch.envs.types.matrix]] +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] + [tool.hatch.envs.types] extra-dependencies = [ "mypy>=1.0.0",