-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.78 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.78 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- repo: local
hooks:
- id: rust-linting
name: rust linting
entry: cargo fmt --all --
types: [file, rust]
language: system
- id: clippy
name: clippy
entry: cargo clippy --all-targets --all-features -- -Dclippy::all
pass_filenames: false
types: [file, rust]
language: system
- id: generate-cli-docs
name: generate cli docs
entry: cargo run -p tryke_dev --bin generate-cli-docs --
pass_filenames: false
types: [file, rust]
language: system
- id: generate-benchmark-docs
name: generate benchmark docs
entry: uv run python benchmarks/summarize.py
files: ^(benchmarks/(summarize\.py|results/.*\.json)|docs/benchmarks\.md)$
pass_filenames: false
language: system
- id: markdownlint-cli2
name: markdownlint-cli2
entry: markdownlint-cli2
language: node
types: [markdown]
additional_dependencies: ['markdownlint-cli2@0.17.2']
exclude: ^(docs/cli\.md|docs/benchmarks\.md|benchmarks/RESULTS\.md)$
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix
pass_filenames: false
types: [python]
language: system
- id: ruff-format
name: ruff format
entry: uv run ruff format
pass_filenames: false
types: [python]
language: system
- id: ty-check
name: ty check
entry: uv run ty check
pass_filenames: false
types: [python]
language: system