-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 1.11 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 1.11 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
repos:
- repo: local
hooks:
- id: bazel-mod-tidy
name: bazel mod tidy
language: system
entry: bazel mod tidy
pass_filenames: false
files: go\.(mod|work|sum)$
- id: uv-lock-fresh
name: uv lock + export
language: system
# Re-runs the lock and the requirements_lock.txt export so a pyproject
# edit can't land without the derived files. uv.lock is the source of
# truth; requirements_lock.txt is what rules_python's pip.parse reads.
entry: bash -c 'set -euo pipefail; uv lock; uv export --format requirements-txt --no-hashes --no-emit-project --output-file requirements_lock.txt'
pass_filenames: false
files: ^(pyproject\.toml|uv\.lock|requirements_lock\.txt)$
- id: gazelle
name: gazelle
language: system
entry: bazel run //:gazelle
pass_filenames: false
files: \.go$
- id: check-secrets-dir
name: check secrets directory
language: python
entry: python meta/scripts/check_secrets_dir.py
pass_filenames: true
files: ^secrets/