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:
    ACK e565e06b0c

Tree-SHA512: 0e73bad93708f626bd00eabc4e2264f2f2fddb0d8cb80a4464889f14077b29ecabdf1865c9dbe3ca7b08354585e3579c515dedcd2b05f34ae863aab31382de33
This commit is contained in:
Andrew Poelstra 2024-05-03 13:30:34 +00:00
commit ecfe556547
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ check:
lint:
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
format:
cargo +$(cat ./nightly-version) fmt --all --check