diff --git a/.github/workflows/push-pull.yml b/.github/workflows/push-pull.yml index 1d4e15dce..6424511e5 100644 --- a/.github/workflows/push-pull.yml +++ b/.github/workflows/push-pull.yml @@ -49,4 +49,13 @@ jobs: - uses: actions/checkout@v4 - uses: astral-sh/ruff-action@v3 with: - args: check --select I --fix --diff \ No newline at end of file + args: check --select I --fix --diff + + nbqa: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install nbqa + run: pip install mypy nbqa + - name: run nbqa + run: nbqa mypy --ignore-missing-imports --strict-equality . diff --git a/pyproject.toml b/pyproject.toml index 4b50c4a0c..c87a02df2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,3 +115,11 @@ extend-exclude = ''' ^/docs ) ''' + +[tool.mypy] +enable_error_code = "deprecated" +exclude = ['docs/conf.py'] + +[[tool.mypy.overrides]] +module = 'tests' +enable_error_code = []