diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 518cd437c..7ece99976 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -28,3 +28,22 @@ jobs: run: | set -eux pytest -vv -r ap --cov jupyter_ai + + typing-tests: + name: Linux + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Base Setup + uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + + - name: Install extension dependencies and build the extension + run: ./scripts/install.sh + + - name: Execute unit tests + run: | + set -eux + mypy --version + mypy packages/jupyter-ai diff --git a/pyproject.toml b/pyproject.toml index cc45dd977..d10ce4594 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,3 +43,8 @@ ignore_imports = ["jupyter_ai_magics.providers -> pydantic"] [tool.pytest.ini_options] addopts = "--ignore packages/jupyter-ai-module-cookiecutter" + +[tool.mypy] +exclude = [ + "tests" +]