Add pre-commit hooks

This commit is contained in:
Ming-Hung Tsai 2021-05-11 17:18:21 +08:00
parent 5baeab4a5c
commit 0553a78c04
1 changed files with 13 additions and 0 deletions

13
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-merge-conflict
- 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: clippy