mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
Nutomic
21304e6751
* Create a custom pre-commit hook, generates config/defaults.hjson (fixes #1836)
* invalid defaults file
* Revert "invalid defaults file"
This reverts commit 76d2c303e2
.
10 lines
304 B
Bash
Executable file
10 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
|