mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 12:01:52 +08:00
This doesn't autofix, see #9742 > GitHub prevented pre-commit.ci from autofixing this pr due to autofixes to a workflow file Life is too short to spend it being yelled at by robots because line length in some YAML is too long.
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: requirements-txt-fixer
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: check-merge-conflict
|
|
- id: mixed-line-ending
|
|
- id: check-case-conflict
|
|
- repo: https://github.com/hadialqattan/pycln
|
|
rev: v2.1.3 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: pycln
|
|
args: [--config=pyproject.toml, stubs, stdlib, tests, scripts]
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.1.0 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: black
|
|
language_version: python3.10
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.12.0 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 6.0.0 # must match requirements-tests.txt
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
- "flake8-bugbear==23.1.20" # must match requirements-tests.txt
|
|
- "flake8-noqa==1.3.0" # must match requirements-tests.txt
|
|
- "flake8-pyi==23.1.2" # must match requirements-tests.txt
|
|
|
|
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: quarterly
|
|
skip: [flake8]
|
|
submodules: false
|