-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
36 lines (32 loc) · 1.14 KB
/
.pre-commit-hooks.yaml
File metadata and controls
36 lines (32 loc) · 1.14 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
- id: duolingo
name: Duolingo
entry: duolingo/pre-commit-hooks:1.14.1 /entry
language: docker_image
types: [text]
- id: precache-docker
name: Precache Docker images
entry: ./precache-docker.sh
language: script
pass_filenames: false
- id: sync-ai-rules
name: Sync AI Rules
entry: duolingo/pre-commit-hooks:1.14.1 sh -c "PYTHONPATH=/ python3 -m sync_ai_rules"
language: docker_image
files: &sync_ai_rules_files (^\.cursor/rules/.*\.mdc$|^\.code_review/.*\.md$)
pass_filenames: false
# Nobody should ever use these hooks in production. They're just for testing PRs in
# the duolingo/pre-commit-hooks repo more easily without having to tag and push
# temporary images to Docker Hub. Usage: edit a consumer repo's hook config to
# instead declare `id: duolingo-dev` or `id: sync-ai-rules-dev` and `rev: <PR branch SHA>`,
# then run `pre-commit run <hook-id> --all-files`
- id: duolingo-dev
name: Duolingo (dev)
entry: /entry
language: docker
types: [text]
- id: sync-ai-rules-dev
name: Sync AI Rules (dev)
entry: sh -c "PYTHONPATH=/ python3 -m sync_ai_rules"
language: docker
files: *sync_ai_rules_files
pass_filenames: false