aboutsummaryrefslogtreecommitdiff
path: root/.dev-suite
diff options
context:
space:
mode:
authorMichael Gattozzi <mgattozzi@gmail.com>2019-11-22 10:02:16 -0500
committerMichael Gattozzi <mgattozzi@gmail.com>2019-11-22 10:02:16 -0500
commit53c05636f77cd9b9c0737e5ab01eddc4bc182fd0 (patch)
tree18dcd0a8191e961246f40ad7c4fcbe73de07ec5d /.dev-suite
parentb966334bf8c67cc82999d8b0962db15c8121bab7 (diff)
Fix formatting and add checks to pre-commit hook
This enables a pre-commit script and adding more pedantic checks to the commit. This means from now on all commits will be in a working state in the history and this enables us to build directly on master without worrying about it breaking the build. Where we're going we won't need feature branches anymore. This also fixes formatting issues that existed but the GitHub actions would not be able to catch at all.
Diffstat (limited to '.dev-suite')
-rwxr-xr-x.dev-suite/hooked/pre-commit6
1 files changed, 5 insertions, 1 deletions
diff --git a/.dev-suite/hooked/pre-commit b/.dev-suite/hooked/pre-commit
index efcbaec..9ae83cf 100755
--- a/.dev-suite/hooked/pre-commit
+++ b/.dev-suite/hooked/pre-commit
@@ -1 +1,5 @@
-#! /bin/bash \ No newline at end of file
+#! /bin/bash
+cargo build --all
+cargo test --all
+cargo +nightly fmt --all -- --check
+cargo clippy --all --all-targets