matrix-rust-sdk/.pre-commit-config.yaml

30 lines
646 B
YAML
Raw Normal View History

2019-11-10 17:33:27 +00:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: fmt
name: fmt
language: system
types: [file, rust]
entry: cargo fmt -- --check
- id: clippy
name: clippy
language: system
types: [file, rust]
entry: cargo clippy --all-targets --all
pass_filenames: false
2019-11-10 17:33:27 +00:00
- id: test
name: test
language: system
files: '\.rs$'
entry: cargo test --lib
pass_filenames: false