add pre-commit config
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Johannes Heuel
2022-09-17 19:02:49 +02:00
parent ff2b4b2598
commit ea1cdf01e4

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

@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.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: v1.0
hooks:
- id: fmt
- id: cargo-check