mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
33 lines
891 B
YAML
33 lines
891 B
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: cargo-fmt
|
|
name: cargo fmt
|
|
entry: cargo fmt --all --check
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
|
|
- id: cargo-clippy
|
|
name: cargo clippy
|
|
entry: cargo clippy --all-targets --all-features -- -D warnings
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
|
|
- id: cargo-check
|
|
name: cargo check
|
|
entry: cargo check --all-targets
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|
|
|
|
- id: cargo-test
|
|
name: cargo test
|
|
entry: bash -c 'cargo test --workspace --exclude e2e_test && cargo test --all --doc'
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|