-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (61 loc) · 1.84 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
69 lines (61 loc) · 1.84 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
exclude: ^uv.lock
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: local
hooks:
- id: ruff
name: lint with ruff
language: system
entry: ruff check --force-exclude --fix
types: [python]
require_serial: true
exclude: ^src/copier_template/src/\{\{ project_name \}\}/
- id: create-workflow-templates
name: creates workflow templates
language: system
entry: bash scripts/runthefiles.sh
types: [python]
pass_filenames: true
require_serial: true
- id: lint-yaml-files
name: run argo lint on the yaml files
language: system
entry: bash scripts/lintyaml.sh
types: [yaml]
pass_filenames: true
require_serial: true
- id: confirm-diamond-compatability
name: ensure yaml is diamond-compatible
language: system
entry: uv run scripts/checkyamlcompliance.py
types: [yaml]
pass_filenames: true
require_serial: true
- id: update-copy-template
name: ensure copy template contains all templates
language: system
entry: bash scripts/makecopiercorrect.sh
pass_filenames: false
require_serial: true
- id: ruff-format
name: format with ruff
language: system
entry: ruff format --force-exclude
types: [python]
require_serial: true
- id: uv-sync
name: update uv.lock and venv
pass_filenames: false
language: system
entry: uv sync
files: ^(uv\.lock|pyproject\.toml)$
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
hooks:
- id: gitleaks