summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..1fd184b
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,10 @@
+repos:
+- repo: https://github.com/doublify/pre-commit-rust
+ rev: v1.0
+ hooks:
+ - id: cargo-check
+ args: ["--workspace"]
+ - id: fmt
+ args: ["--", "--check"]
+ - id: clippy
+ args: ["--", "-D", "warnings"]