summaryrefslogtreecommitdiff
path: root/git-hooks/pre-commit
blob: 98f1c379ae27476df9504a2784f1f5812a088686 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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.

# Make sure there are no screamers in the code.
cargo check
# Make sure the prepared statement data in .sqlx is up to date.
cargo sqlx prepare --check