Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (78 loc) · 2.44 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
78 lines (78 loc) · 2.44 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
exclude: ^schemas/table-schema.json$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.39.0
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- id: check-metaschema
name: Validate JSON schemas
files: ^schemas/(settings|input/model|output/metadata)\.yaml$
- id: check-jsonschema
name: Validate table schemas
args: ["--schemafile", "schemas/table-schema.json"]
files: ^schemas/input/
exclude: /model\.yaml$
- id: check-jsonschema
name: Validate model.toml files
args: ["--schemafile", "schemas/input/model.yaml"]
files: /model\.toml$
types_or: [toml]
- id: check-jsonschema
name: Validate settings.toml files
args: ["--schemafile", "schemas/settings.yaml"]
files: /settings\.toml$
types_or: [toml]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.50.0
hooks:
- id: markdownlint-fix
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [yaml, json]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-toml
args: [--autofix, --indent, "4", --no-sort]
exclude: ^(Cargo|uv)\.lock$
- id: pretty-format-rust
args: [--autofix]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: clippy
args: ["--all-targets", "--", "-D", "warnings"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.5
hooks:
- id: ruff-check
types_or: [python]
args: [--fix]
- id: ruff-format
types_or: [python]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
args: [--ignore-words, .codespell_ignore.txt]
exclude: \.svg$
- repo: https://github.com/ImperialCollegeLondon/cffconvert
rev: 2.1.0
hooks:
- id: validate-cff
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.13.8
hooks:
- id: uv-lock