mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
This makes it easier to lint your own work with `pre-commit`, but doesn't change the CI config by adding this to the pre-commit.ci skip list. There's no way to automatically reflect the additional dependencies from the requirements file, so the flake8 plugin list needs to be a verbatim copy. resolves #7991
28 lines
836 B
YAML
28 lines
836 B
YAML
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: black
|
|
language_version: python3.9
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 4.0.1 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
# must match requirements-tests.txt
|
|
- 'flake8-bugbear==21.11.29'
|
|
- 'flake8-pyi==22.5.1'
|
|
|
|
ci:
|
|
autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit.com hooks'
|
|
autofix_prs: true
|
|
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
|
|
autoupdate_schedule: weekly
|
|
skip: [flake8]
|
|
submodules: false
|