summaryrefslogtreecommitdiff
path: root/git-hooks/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks/pre-commit')
-rwxr-xr-xgit-hooks/pre-commit5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index 587e349..3d0ae17 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -1,8 +1,9 @@
#!/bin/bash -e
# Don't put anything here that routinely takes longer than a second or so to
-# run. It gets old fast. That's why this uses `cargo check` and not `cargo
-# test`, for example.
+# run. It gets old fast. That's why this doesn't run tests, for example.
+
+tools/check-format
# Make sure package-lock.json is up to date with package.json
npm ci --dry-run