-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (49 loc) · 1.52 KB
/
.pre-commit-config.yaml
File metadata and controls
54 lines (49 loc) · 1.52 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert]
# Optional: pyright via node (requires node)
# - repo: https://github.com/jakebailey/pyright-precommit
# rev: v1.1.391
# hooks:
# - id: pyright
# additional_dependencies: []
- repo: local
hooks:
- id: generate-llms-txt
name: Generate llms.txt
entry: python3 scripts/generate_llms_txt.py
language: system
pass_filenames: false
stages: [pre-commit]
- id: ruff-check
name: Ruff check (project environment)
entry: uv run ruff check .
language: system
pass_filenames: false
stages: [pre-commit]
- id: ruff-format
name: Ruff format (project environment)
entry: uv run ruff format .
language: system
pass_filenames: false
stages: [pre-commit]
- id: check-precommit
name: Run tests and type checks (pyright + ty)
entry: make check-precommit
language: system
pass_filenames: false
stages: [pre-commit]
require_serial: true