Skip to content

Commit

Permalink
Run mypy on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Sep 10, 2024
1 parent 43e6acc commit e29a940
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]

0 comments on commit e29a940

Please sign in to comment.