Merge rust-bitcoin/rust-bitcoin#2679: just: Add just fmt
e565e06b0c
just: Add just fmt (Tobin C. Harding) Pull request description: We already have a `just` command to check the formatting, add one to run the formatter. Use the more terse `just fmt` although the difference from `just format` is not super obvious it is documented in the default output of `just`. With this applied we have ```bash $ just Available recipes: build # Cargo build everything. check # Cargo check everything. default fmt # Run cargo fmt format # Check the formatting lint # Lint everything. sane # Quick and dirty CI useful for pre-push checks. update-lock-files # Update the recent and minimal lock files. ``` ACKs for top commit: apoelstra: ACKe565e06b0c
Tree-SHA512: 0e73bad93708f626bd00eabc4e2264f2f2fddb0d8cb80a4464889f14077b29ecabdf1865c9dbe3ca7b08354585e3579c515dedcd2b05f34ae863aab31382de33
This commit is contained in:
commit
ecfe556547
4
justfile
4
justfile
|
@ -13,6 +13,10 @@ check:
|
||||||
lint:
|
lint:
|
||||||
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings
|
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings
|
||||||
|
|
||||||
|
# Run cargo fmt
|
||||||
|
fmt:
|
||||||
|
cargo +$(cat ./nightly-version) fmt --all
|
||||||
|
|
||||||
# Check the formatting
|
# Check the formatting
|
||||||
format:
|
format:
|
||||||
cargo +$(cat ./nightly-version) fmt --all --check
|
cargo +$(cat ./nightly-version) fmt --all --check
|
||||||
|
|
Loading…
Reference in New Issue