-
Notifications
You must be signed in to change notification settings - Fork 383
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (53 loc) · 1.41 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (53 loc) · 1.41 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
exclude: ^hugo/static/.*$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-xml
exclude: |
(?x)^(
hugo/layouts/sitemap.xml|
hugo/layouts/_default/rss.xml
)$
- id: check-yaml
exclude: ^python/mkdocs.yml$
args: ['--unsafe']
- id: end-of-file-fixer
- id: name-tests-test
files: ^python/tests/
types: [file, python]
- id: no-commit-to-branch
- id: trailing-whitespace
- repo: local
hooks:
- id: validate-xml
name: validate xml
language: unsupported
entry: jing -c data/xml/schema.rnc
files: ^data/xml
types: [xml]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: insert-license
files: ^python/
types: [file, python]
args: ['--license-filepath', 'python/LICENSE.header', '--detect-license-in-X-top-lines=10']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
hooks:
- id: ruff-check
name: ruff-check
types: [file, python]
args: ['--config', 'pyproject.toml', '--fix', '--show-fixes']
- id: ruff-format
name: ruff-format
types: [file, python]
args: ['--config', 'pyproject.toml']
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.9.28
hooks:
- id: uv-lock