Skip to content

Commit

Permalink
Add rustfmt and cargo check pre-commit hooks (rust-bio#312)
Browse files Browse the repository at this point in the history
* added pre-commit-config.yaml

* add some more hooks

Co-authored-by: Johannes Köster <[email protected]>
  • Loading branch information
tedil and johanneskoester authored Jul 7, 2020
1 parent 10176a6 commit 23e5e9a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check

0 comments on commit 23e5e9a

Please sign in to comment.