pre-commit: check clippies and format in pre-commit to avoid CI fail
All checks were successful
test / AoC 2024 (push) Successful in 2m55s
All checks were successful
test / AoC 2024 (push) Successful in 2m55s
This commit is contained in:
parent
b060de20c7
commit
003bc3212d
@ -1,4 +1,18 @@
|
|||||||
repos:
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: rust-linting
|
||||||
|
name: Rust linting
|
||||||
|
entry: cargo fmt --all --
|
||||||
|
pass_filenames: true
|
||||||
|
types: [file, rust]
|
||||||
|
language: system
|
||||||
|
- id: rust-clippy
|
||||||
|
name: Rust clippy
|
||||||
|
entry: cargo clippy --lib --all-features --tests -- -D warnings
|
||||||
|
pass_filenames: false
|
||||||
|
types: [file, rust]
|
||||||
|
language: system
|
||||||
- repo: https://github.com/LiquidFun/aoc_tiles
|
- repo: https://github.com/LiquidFun/aoc_tiles
|
||||||
rev: 0.6.2
|
rev: 0.6.2
|
||||||
hooks:
|
hooks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user