-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (35 loc) · 1.19 KB
/
.pre-commit-config.yaml
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
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
exclude: 'frontend/src/assets/decision-tree.json|frontend/src/assets/categories.json'
- id: trailing-whitespace
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-added-large-files
exclude: 'frontend/src/assets/decision-tree.json|frontend/src/assets/categories.json'
- id: check-merge-conflict
- id: check-toml
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
- id: ruff-format
- repo: local
hooks:
- id: validate-schema
name: validate schema
entry: sh -c './script/validate --file_pairs schemas/schema_decision_tree.json:decision-tree.yaml schemas/schema_definitions.json:definitions.yaml'
language: python
additional_dependencies: [jsonschema, pyyaml]
pass_filenames: false
always_run: true
ci:
autofix_prs: false
autofix_commit_msg: "Auto fix pre-commit.com hooks"
autoupdate_commit_msg: "Update .pre-commit-config.yaml"