chore: update content
This commit is contained in:
parent
ad1ace8910
commit
1c9f4b8fcc
@ -10,7 +10,7 @@ repos:
|
||||
hooks:
|
||||
- id: rust-fmt
|
||||
name: Rust formatting (cargo +nightly fmt)
|
||||
entry: bash -c 'cargo +nightly fmt --all -- --check'
|
||||
entry: bash -c 'if [ -f platform/Cargo.toml ]; then cd platform && cargo +nightly fmt --all -- --check; fi'
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
@ -18,7 +18,7 @@ repos:
|
||||
|
||||
- id: rust-clippy
|
||||
name: Rust linting (cargo clippy)
|
||||
entry: bash -c 'cargo clippy --all-targets -- -D warnings'
|
||||
entry: bash -c 'if [ -f platform/Cargo.toml ]; then cd platform && cargo clippy --all-targets -- -D warnings; fi'
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
@ -26,7 +26,7 @@ repos:
|
||||
|
||||
- id: rust-test
|
||||
name: Rust tests
|
||||
entry: bash -c 'cargo test --workspace'
|
||||
entry: bash -c 'if [ -f platform/Cargo.toml ]; then cd platform && cargo test --workspace; fi'
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
@ -34,7 +34,7 @@ repos:
|
||||
|
||||
- id: cargo-deny
|
||||
name: Cargo deny (licenses & advisories)
|
||||
entry: bash -c 'cargo deny check licenses advisories'
|
||||
entry: bash -c 'if [ -f Cargo.toml ]; then cargo deny check licenses advisories; elif [ -f platform/Cargo.toml ]; then cd platform && cargo deny check licenses advisories; fi'
|
||||
language: system
|
||||
pass_filenames: false
|
||||
stages: [pre-push]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user