aboutsummaryrefslogtreecommitdiff
path: root/.husky/pre-commit
blob: 82d5a4b1d807447c99dec19cf07d6a56e1b18ec0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Check if formatting in Rust source files is per standard.
cargo fmt

# Check if SQLFluff is installed on the system, if it is, run the linting
# subroutine on SQL source files.
if command -v sqlfluff > /dev/null; then
	sqlfluff lint migrations/
fi