Browse Source

Add in pre-commit configuration

Samuel W. Flint 3 years ago
parent
commit
fd90eb37b5
2 changed files with 11 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 10 0
      .pre-commit-config.yaml

+ 1 - 0
.gitignore

@@ -4,6 +4,7 @@
 !.gitmodules
 !.gitkeep
 !.envrc
+!.pre-commit-config.yaml
 
 # Emacs Stuff
 *~

+ 10 - 0
.pre-commit-config.yaml

@@ -0,0 +1,10 @@
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v3.2.0
+    hooks:
+      - id: check-toml
+      - id: trailing-whitespace
+  - repo: https://github.com/doublify/pre-commit-rust
+    rev: v1.0
+    hooks:
+      - id: cargo-check