mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
Setup pre-commit so it runs locally before every git push (#12)
* Setup pre-commit so it runs locally before every git push * Update .pre-commit-config.yaml * added more checks * update readme * Apply suggestions from code review Co-authored-by: José Ulises Niño Rivera <junr03@users.noreply.github.com> * remove cargo-check --------- Co-authored-by: José Ulises Niño Rivera <junr03@users.noreply.github.com>
This commit is contained in:
parent
a386d68b41
commit
cc2a496f90
3 changed files with 35 additions and 1 deletions
24
.pre-commit-config.yaml
Normal file
24
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: cargo-fmt
|
||||
name: cargo-fmt
|
||||
language: system
|
||||
types: [file, rust]
|
||||
entry: bash -c "cd envoyfilter && cargo fmt --all"
|
||||
- id: cargo-clippy
|
||||
name: cargo-clippy
|
||||
language: system
|
||||
types: [file, rust]
|
||||
entry: bash -c "cd envoyfilter && cargo clippy --all"
|
||||
- id: cargo-test
|
||||
name: cargo-test
|
||||
language: system
|
||||
types: [file, rust]
|
||||
entry: bash -c "cd envoyfilter && cargo test --all"
|
||||
Loading…
Add table
Add a link
Reference in a new issue