chore: update content
This commit is contained in:
parent
ad1ace8910
commit
1c9f4b8fcc
@ -10,7 +10,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: rust-fmt
|
- id: rust-fmt
|
||||||
name: Rust formatting (cargo +nightly 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
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
@ -18,7 +18,7 @@ repos:
|
|||||||
|
|
||||||
- id: rust-clippy
|
- id: rust-clippy
|
||||||
name: Rust linting (cargo 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
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
@ -26,7 +26,7 @@ repos:
|
|||||||
|
|
||||||
- id: rust-test
|
- id: rust-test
|
||||||
name: Rust tests
|
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
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
@ -34,7 +34,7 @@ repos:
|
|||||||
|
|
||||||
- id: cargo-deny
|
- id: cargo-deny
|
||||||
name: Cargo deny (licenses & advisories)
|
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
|
language: system
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
stages: [pre-push]
|
stages: [pre-push]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user