-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (50 loc) · 1.42 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
50 lines (50 loc) · 1.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: \.md$
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.12
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: local
hooks:
- id: validate-skill-frontmatter
name: Validate SKILL.md frontmatter
language: python
additional_dependencies:
- pyyaml
- jsonschema
entry: python .scripts/validate_skills_schema.py
files: (^|/)SKILL\.md$
- id: generate-readme
name: Generate README.md
language: python
additional_dependencies:
- pyyaml
entry: .scripts/generate_skills_table.py
pass_filenames: false
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
exclude: ^README\.md$
additional_dependencies:
- mdformat-gfm==1.0.0
- mdformat-frontmatter==2.0.10
- mdformat-ruff==0.1.3
- mdformat-web==0.2.0
- mdformat-config==0.2.1
- mdformat-beautysh==1.0.0