mirror of
https://github.com/j178/prek.git
synced 2026-04-03 17:34:03 +02:00
36 lines
811 B
YAML
36 lines
811 B
YAML
fail_fast: true
|
|
default_install_hook_types: [pre-push]
|
|
exclude: |
|
|
(?x)^(
|
|
.*/(snapshots)/.*|
|
|
)$
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
exclude: docs/cli.md # Exclude generated doc
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.38.1
|
|
hooks:
|
|
- id: typos
|
|
|
|
- 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
|