From 864038f5e8b4f5dc3b84e1383303f5d2ccf1bcbc Mon Sep 17 00:00:00 2001 From: Xithrius Date: Mon, 20 Sep 2021 20:01:23 -0700 Subject: [PATCH] Fixed and added pre-commit hooks --- .pre-commit-config.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f2c9865..65dcd1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 ]