2024-11-20 11:05:44 +01:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
2024-11-29 15:50:23 +01:00
|
|
|
python/.*/auto_\w+/.*.py|
|
2024-11-29 16:06:04 +01:00
|
|
|
external/.*|
|
2024-11-29 15:50:23 +01:00
|
|
|
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:
|
2024-11-29 15:56:03 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
2025-01-06 16:47:06 +00:00
|
|
|
rev: v19.1.6
|
2024-11-29 16:06:04 +01:00
|
|
|
# if adding directory handled by clang-format
|
|
|
|
# you need to adapt prepare_commit and verify_indentation scripts accordingly
|
2024-11-29 15:56:03 +01:00
|
|
|
hooks:
|
|
|
|
- id: clang-format
|
|
|
|
types_or: [c++, c, c#]
|
2024-11-29 16:06:04 +01:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
src/core/.*|
|
|
|
|
tests/code_layout/sipify/sipifyheader.h
|
|
|
|
)$
|
2024-11-29 15:56:03 +01:00
|
|
|
|
2024-11-20 10:53:17 +01:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2025-01-06 16:47:06 +00:00
|
|
|
rev: v3.19.1
|
2024-11-20 10:53:17 +01:00
|
|
|
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
|