Added pre-commit configuration

This commit is contained in:
Arthur Nieuwland 2020-10-14 17:47:06 +02:00
parent 6efebb81e9
commit 2d3028a605
1 changed files with 28 additions and 0 deletions

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

@ -0,0 +1,28 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-xml
- id: pretty-format-json
args: [--autofix]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: master
hooks:
- id: pretty-format-yaml
args: [--autofix]
- id: pretty-format-toml
args: [--autofix]
- repo: http://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check