mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 02:05:10 +00:00
21304e6751
* Create a custom pre-commit hook, generates config/defaults.hjson (fixes #1836)
* invalid defaults file
* Revert "invalid defaults file"
This reverts commit 76d2c303e2
.
11 lines
304 B
Bash
Executable file
11 lines
304 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
cargo +nightly fmt -- --check
|
|
|
|
cargo +nightly clippy --workspace --tests --all-targets --all-features -- \
|
|
-D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
|
|
|
|
cargo run -- --print-config-docs > config/defaults.hjson
|
|
git add config/defaults.hjson
|