-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (35 loc) · 947 Bytes
/
.pre-commit-config.yaml
File metadata and controls
38 lines (35 loc) · 947 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
30
31
32
33
34
35
36
37
38
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
exclude: ^tests/.*$
- id: check-toml
exclude: ^tests/.*$
- id: end-of-file-fixer
exclude: >-
(^.*\.(json|txt)$)|(^tests/.*\.toml$)|(.github/.*TEMPLATE)
- id: trailing-whitespace
exclude: >-
(^.*\.(json|txt)$)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.6.0
hooks:
- id: pyproject-fmt
exclude: ^tests/.*$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.5
hooks:
- id: uv-lock
- id: uv-export
args: [ "--output-file=pylock.toml" ]
- id: uv-sync
args: [ "--all-extras" ]