Skip to content

Commit bc8fb42

Browse files
committed
Add pre-commit for sqlx prepare
1 parent c463043 commit bc8fb42

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ repos:
7676
entry: cargo +1.82.0 fmt --manifest-path ./apps/fortuna/Cargo.toml --all
7777
pass_filenames: false
7878
files: apps/fortuna
79+
- id: cargo-sqlx-fortuna
80+
name: Cargo sqlx prepare check for Fortuna
81+
language: "script"
82+
entry: ./apps/fortuna/check-sqlx.sh
83+
pass_filenames: false
84+
files: apps/fortuna
7985
- id: cargo-clippy-fortuna
8086
name: Cargo clippy for Fortuna
8187
language: "rust"

apps/fortuna/check-sqlx.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd apps/fortuna || exit 1
3+
cargo sqlx prepare --check

0 commit comments

Comments
 (0)