Skip to content

Commit

Permalink
enable nbqa in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
XzzX committed Feb 13, 2025
1 parent 006bfc9 commit b87bc57
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/push-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,13 @@ jobs:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
args: check --select I --fix --diff
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 .
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

0 comments on commit b87bc57

Please sign in to comment.