Fixed and added pre-commit hooks

This commit is contained in:
Xithrius 2021-09-20 20:01:23 -07:00
parent 5680c03e71
commit 864038f5e8
No known key found for this signature in database
GPG Key ID: BD0FC909FA912B62

View File

@ -1,5 +1,18 @@
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: fmt
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: rust
types: [ rust ]