-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
74 lines (69 loc) · 2.42 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
74 lines (69 loc) · 2.42 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
exclude: '^(cli|sdk/go)/NOTICE$'
- id: end-of-file-fixer
exclude: '^(cli|sdk/go)/NOTICE$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
exclude: '(pnpm-lock\.yaml|uv\.lock)$'
- repo: local
hooks:
- id: check-docs
name: check docs links
entry: uv run --no-project python scripts/check_docs.py
language: system
pass_filenames: false
files: '\.md$|^\.gitbook\.yaml$|^\.gitbook-branch-readme\.md$|^scripts/(check_docs|prepare_gitbook_site)\.py$'
- id: ty-check-schema-python
name: ty (schema/python)
entry: bash -c 'cd schema/python && uvx ty check src/cq_schema --python .venv'
language: system
pass_filenames: false
types: [python]
files: ^schema/python/
- id: ty-check-sdk-python
name: ty (sdk/python)
entry: bash -c 'cd sdk/python && uvx ty check src/cq --python .venv'
language: system
pass_filenames: false
types: [python]
files: ^sdk/python/
- id: ty-check-server-backend
name: ty (server/backend)
entry: bash -c 'cd server/backend && uvx ty check src/cq_server --python .venv'
language: system
pass_filenames: false
types: [python]
files: ^server/backend/
- repo: local
hooks:
- id: uv-lock-check-schema-python
name: uv lock --check (schema/python)
entry: uv lock --check --directory schema/python
language: system
pass_filenames: false
files: ^schema/python/(pyproject\.toml|uv\.lock|uv\.toml)$
- id: uv-lock-check-sdk-python
name: uv lock --check (sdk/python)
entry: uv lock --check --directory sdk/python
language: system
pass_filenames: false
files: ^sdk/python/(pyproject\.toml|uv\.lock|uv\.toml)$
- id: uv-lock-check-server-backend
name: uv lock --check (server/backend)
entry: uv lock --check --directory server/backend
language: system
pass_filenames: false
files: ^server/backend/(pyproject\.toml|uv\.lock|uv\.toml)$