From a9c0b6ea5d0bb80b04a10e0089dcf49e130fef1c Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Fri, 2 Oct 2026 07:43:25 -0400 Subject: [PATCH] add a tox typecheck command and align typecheck in GitHub actions with other extras installs --- .github/workflows/typecheck.yml | 2 +- changelog.md | 1 + pyproject.toml | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 806d0b01..f062e4e2 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -30,7 +30,7 @@ jobs: version: 'latest' - name: Install dependencies - run: uv sync --all-extras + run: uv sync --extra dev,llm,dataframe - name: Run mypy run: | diff --git a/changelog.md b/changelog.md index 6ae5b448..964bb365 100644 --- a/changelog.md +++ b/changelog.md @@ -27,6 +27,7 @@ Internal * Use the `uv` outside of the `tox` environment when testing. * Use forward-slash forms of special commands in the behave test suite. * Use forward-slash forms of special commands in the pytest test suite. +* Add a `tox` typecheck command. v2.27.0 (2026/09/29) diff --git a/pyproject.toml b/pyproject.toml index b0d1a159..76480172 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -164,6 +164,11 @@ deps = ['ruff'] commands = [['ruff', 'check'], ['ruff', 'format', '--diff']] +[tool.tox.env.typecheck] +skip_install = true +commands = [['uv', 'run', '--no-sync', '--frozen', '--', 'python', '-m', 'ensurepip'], + ['uv', 'run', '--no-sync', '--frozen', '--', 'python', '-m', 'mypy', '--no-pretty', '--install-types', '--non-interactive', '.']] + [tool.pytest] addopts = ['--random-order']