Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mypy-self-check to pre-commit #15084

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,17 @@ repos:
additional_dependencies:
- flake8-bugbear==22.12.6 # must match test-requirements.txt
- flake8-noqa==1.3.0 # must match test-requirements.txt
- repo: local
hooks:
- id: mypy-self-check-mypy
name: mypy self-check mypy(c)
language: system
entry: python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
pass_filenames: false
files: ^(mypy|mypyc)/.+\.py$
- id: mypy-self-check-misc
name: mypy self-check misc
language: system
entry: python -m mypy --config-file mypy_self_check.ini misc --exclude misc/fix_annotate.py --exclude misc/async_matrix.py --exclude misc/sync-typeshed.py
pass_filenames: false
files: ^(misc)/.+\.py$