add pre-commit config

This commit is contained in:
Johannes Heuel
2022-08-22 20:07:39 +02:00
parent 9c6b9d173c
commit 12e5c79a5e
13 changed files with 42 additions and 32 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.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check