polarity/scripts/git-hooks/pre-commit
Tim Süberkrüb 86f9994473
Add examples/index.json (#397)
* Add examples/index.json

* Ensure examples index remains in sync

* Improve script output

* Set permissions in .github/workflows/examples-index.yml
2024-11-29 23:21:03 +01:00

12 lines
288 B
Bash
Executable file

#!/usr/bin/env bash
# Pre-commit hook
# Place into `.git/hooks` or use `git config core.hooksPath scripts/git-hooks`
# from the root of the repository
set -e
cargo test --all
cargo clippy --all -- -Dwarnings
cargo fmt --all --check
./scripts/check_examples_index.sh
(cd web; make lint)