1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-06 22:12:32 +00:00
krust/.pre-commit-config.yaml

48 lines
1.1 KiB
YAML
Raw Normal View History

# See https://pre-commit.com for more information
repos:
- repo: local
hooks:
- id: rustfmt
name: rustfmt
entry: make fmt
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
entry: make lint
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
entry: make check-code
language: system
types: [rust]
pass_filenames: false
- id: cargo-test
name: cargo test
entry: make test-unit
language: system
types: [rust]
pass_filenames: false
- id: cargo-test-e2e
name: cargo e2e tests
entry: make test-e2e
language: system
types: [rust]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files