mirror of
https://github.com/j178/prek.git
synced 2026-04-25 02:11:36 +02:00
1d2fd2ec3b
Add a root `SKILL.md` that teaches agents how to use `prek`. Closes #1920
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
fail_fast: true
|
|
default_install_hook_types: [pre-push]
|
|
exclude:
|
|
glob: '**/snapshots/**'
|
|
|
|
repos:
|
|
- repo: builtin
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
exclude:
|
|
glob: CHANGELOG.md
|
|
- id: mixed-line-ending
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.45.0
|
|
hooks:
|
|
- id: typos
|
|
|
|
- repo: https://github.com/executablebooks/mdformat
|
|
rev: '1.0.0'
|
|
hooks:
|
|
- id: mdformat
|
|
language: python # ensures that Renovate can update additional_dependencies
|
|
args: [--number, --compact-tables, --align-semantic-breaks-in-lists]
|
|
additional_dependencies:
|
|
- mdformat-frontmatter==2.0.10
|
|
- mdformat-mkdocs==5.1.4
|
|
- mdformat-simple-breaks==0.1.0
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 0.37.1
|
|
hooks:
|
|
- id: check-metaschema
|
|
files:
|
|
glob: prek.schema.json
|
|
- id: check-github-workflows
|
|
- id: check-renovate
|
|
additional_dependencies: ['json5']
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: taplo-fmt
|
|
name: taplo fmt
|
|
entry: taplo fmt --config .config/taplo.toml
|
|
language: python
|
|
additional_dependencies: ["taplo==0.9.3"]
|
|
types: [toml]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: cargo-fmt
|
|
name: cargo fmt
|
|
entry: cargo fmt --
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false # This makes it a lot faster
|
|
|
|
- id: cargo-clippy
|
|
name: cargo clippy
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
entry: cargo clippy --all-targets --all-features -- -D warnings
|