-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 982 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# To install the git pre-commit hooks run:
# prek install --install-hooks --overwrite
# To update the versions:
# prek autoupdate
exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
# Note the order is intentional to avoid multiple passes of the hooks
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
hooks:
- id: ruff
# Using --unsafe-fixes can change code behavior
args: [--fix, --exit-non-zero-on-fix, --show-fixes, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.9.16
hooks:
- id: tombi-format
# args: [ "--offline" ]
- id: tombi-lint
# args: [ "--offline" ]
# Should you use this offline, uncomment those args
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: debug-statements