mirror of
https://github.com/catalyst-cooperative/agent-skills.git
synced 2026-09-19 07:35:36 +08:00
107 lines
2.6 KiB
YAML
107 lines
2.6 KiB
YAML
ci:
|
|
skip: [pyrefly-check, pytest, last-updated]
|
|
|
|
repos:
|
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
|
rev: v0.23.2
|
|
hooks:
|
|
- id: markdownlint-cli2
|
|
|
|
- repo: https://github.com/hukkin/mdformat
|
|
rev: 1.0.0
|
|
hooks:
|
|
- id: mdformat
|
|
additional_dependencies:
|
|
- mdformat-footnote
|
|
- mdformat-front-matters
|
|
- mdformat-gfm
|
|
- mdformat-mkdocs
|
|
- mdformat_simple_breaks
|
|
- mdformat-wikilink
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
args: [--maxkb=800]
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
- id: check-case-conflict
|
|
- id: debug-statements
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-json
|
|
- id: pretty-format-json
|
|
args: [--autofix, --indent=2, --no-sort-keys]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.16.7
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
rev: v3.9.6
|
|
hooks:
|
|
- id: prettier
|
|
types_or: [yaml]
|
|
|
|
- repo: https://github.com/rhysd/actionlint
|
|
rev: v1.7.12
|
|
hooks:
|
|
- id: actionlint
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: v0.11.0.1-1
|
|
hooks:
|
|
- id: shellcheck
|
|
|
|
- repo: https://github.com/ComPWA/taplo-pre-commit
|
|
rev: v0.9.3
|
|
hooks:
|
|
- id: taplo-format
|
|
|
|
# Lint Dockerfiles for errors and to ensure best practices
|
|
- repo: https://github.com/AleksaC/hadolint-py
|
|
rev: v2.15.1
|
|
hooks:
|
|
- id: hadolint
|
|
|
|
- repo: https://github.com/adhtruong/mirrors-typos
|
|
rev: v1.50.1
|
|
hooks:
|
|
- id: typos
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: pyrefly-check
|
|
name: pyrefly-check
|
|
entry: pixi run pyrefly check
|
|
language: system
|
|
types_or: [python, pyi]
|
|
pass_filenames: false
|
|
- id: last-updated
|
|
name: update `last-updated` metadata in SKILL.md
|
|
language: system
|
|
files: ^skills/.*/SKILL\.md$
|
|
pass_filenames: true
|
|
entry: |-
|
|
bash -c '
|
|
today=$(date +%Y-%m-%d)
|
|
for f in "$@"; do
|
|
sed -i.bak -E "s/^([[:space:]]*-[[:space:]]*last-updated:).*/\1 ${today}/" "$f"
|
|
rm -f "$f.bak"
|
|
done
|
|
' --
|
|
- id: pytest
|
|
name: pytest
|
|
stages: [pre-commit]
|
|
language: unsupported
|
|
verbose: false
|
|
pass_filenames: false
|
|
always_run: true
|
|
entry: pixi run test
|