-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (29 loc) · 1.21 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
33 lines (29 loc) · 1.21 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
repos:
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
hooks:
- id: mdformat
args: ["--number", "--wrap", "80"]
additional_dependencies:
- mdformat-gfm
- mdformat-frontmatter
- repo: local
hooks:
- id: check-workflow-unconfigured
name: Ensure workflow.json uses default placeholders
entry: python3 reference/scripts/configure.py --check-clean
language: system
files: ^reference/workflow\.json$
pass_filenames: false
- id: check-requirements-public-index
name: Ensure requirements files do not embed internal package index URLs
entry: bash -c 'grep -E "airlock-proxy|uplink\.goog|--index-url|--trusted-host" reference/requirements*.txt reference/sandbox/requirements*.txt; [ $? -eq 1 ]'
language: system
files: ^reference/.*requirements.*\.txt$
pass_filenames: false
- id: check-skills-path-anchoring
name: Ensure skill bash code blocks anchor reference scripts
entry: python3 reference/scripts/check_skill_anchoring.py
language: system
files: ^(mantis-[^/]+/SKILL\.md|reference/skills/[^/]+/SKILL\.md)$
pass_filenames: true