2024-11-20 11:05:44 +01:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
2024-11-29 15:50:23 +01:00
|
|
|
python/.*/auto_\w+/.*.py|
|
|
|
|
tests/testdata/script_with_error.py
|
2024-11-20 11:05:44 +01:00
|
|
|
)$
|
2024-11-20 10:53:17 +01:00
|
|
|
fail_fast: false
|
2024-11-20 11:05:44 +01:00
|
|
|
|
2024-11-20 10:53:17 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
|
|
rev: v3.19.0
|
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py39-plus]
|
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 24.10.0
|
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
|
|
rev: 5.13.2
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: ["--profile", "black", "--filter-files"]
|
|
|
|
|
2024-11-21 08:21:35 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: prepare_commit
|
|
|
|
name: prepare_commit
|
|
|
|
entry: ./scripts/prepare_commit.sh
|
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
|
|
|
|
2024-11-20 10:53:17 +01:00
|
|
|
ci:
|
|
|
|
autofix_prs: true
|
2024-11-20 11:05:44 +01:00
|
|
|
autoupdate_schedule: quarterly
|