chore: add .pre-commit-config.yaml with core hooks
This commit is contained in:
parent
dfb262aad5
commit
d550a00481
|
|
@ -0,0 +1,30 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
args: ['--maxkb=500']
|
||||
|
||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||
rev: v0.44.0
|
||||
hooks:
|
||||
- id: markdownlint
|
||||
args: ["--config", ".markdownlint.json"]
|
||||
|
||||
- repo: https://github.com/tcort/markdown-link-check
|
||||
rev: v3.13.7
|
||||
hooks:
|
||||
- id: markdown-link-check
|
||||
args: ["--config", ".markdown-link-check.json"]
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: validate-tool-tables
|
||||
name: Validate Tool Table Schema
|
||||
entry: python scripts/validate-tool-tables.py
|
||||
language: python
|
||||
files: ^tools/.*\.md$
|
||||
types: [markdown]
|
||||
Loading…
Reference in New Issue