Skip to content

Commit

Permalink
chore: add Justfile and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
expelledboy committed Jun 20, 2023
1 parent 30c88e8 commit 19f217c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
git config core.hooksPath .github/hooks
use flake
3 changes: 3 additions & 0 deletions .github/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

just pre-commit
11 changes: 8 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
_default:
just --list --unsorted
[private]
default:
@ just --list --unsorted

lint:
cargo fmt --all
Expand All @@ -12,4 +13,8 @@ test:
| egrep -v '^$'

build:
cargo build --release
cargo build --release

[private]
pre-commit:
cargo fmt --check

0 comments on commit 19f217c

Please sign in to comment.