2023-06-08 13:38:26 -06:00
|
|
|
#!/usr/bin/env bash
|
2022-11-18 21:33:54 -07:00
|
|
|
set -e
|
|
|
|
|
2023-02-18 07:36:12 -07:00
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
|
|
|
|
cd $CWD/../
|
|
|
|
|
2023-08-02 10:44:51 -06:00
|
|
|
# Format rust files
|
2023-02-18 07:36:12 -07:00
|
|
|
cargo +nightly fmt
|
2023-08-02 10:44:51 -06:00
|
|
|
|
|
|
|
# Format toml files
|
2023-07-14 02:45:18 -06:00
|
|
|
taplo format
|
2023-08-02 10:44:51 -06:00
|
|
|
|
|
|
|
# Format sql files
|
|
|
|
find migrations -type f -name '*.sql' -exec pg_format -i {} +
|
2024-01-29 07:22:53 -07:00
|
|
|
|
|
|
|
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- -D warnings
|