-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (30 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 1.13 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
repos:
- repo: local
hooks:
- id: yamllint-related-works
name: yamllint docs/related-works.yaml
entry: uv run --group dev yamllint docs/related-works.yaml
language: system
pass_filenames: false
files: ^docs/related-works\.yaml$
- id: check-jsonschema-related-works-schema
name: check-jsonschema --check-metaschema docs/related-works.schema.json
entry: uv run --group dev check-jsonschema --check-metaschema docs/related-works.schema.json
language: system
pass_filenames: false
files: ^docs/related-works\.schema\.json$
- id: check-jsonschema-related-works-data
name: check-jsonschema docs/related-works.yaml
entry: uv run --group dev check-jsonschema --schemafile docs/related-works.schema.json docs/related-works.yaml
language: system
pass_filenames: false
files: ^docs/related-works\.yaml$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.4
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format