Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
flake/hooks: Reconfigure Git Hooks
Merged lorenz opened 8 months ago
  1. Introduce a new hook to run cargo doc in the “pre-commit” phase. We have to resort to wrapping the command in a shell script, since we cannot configure environment variables via .pre-commit.yaml but need RUSTDOCFLAGS so that cargo doc actually exists non-zero when there are warnings.
  2. Move cargo check from the “pre-push” to the “pre-commit” phase, as it is relatively quick, and redundant to run before clippy.
  3. Let cargo check and cargo doc run after rustfmt.
  4. Let a failure of rustfmt fail the whole check.
  5. Wire through packageOverrides to rustfmt so we use the same toolchain as the other tools.
  6. Additionally enable cargo clippy to consider all features.
lorenz opened with revision 858b52b6 on base 7d2f0e38 +34 -6 8 months ago
  1. Introduce a new hook to run cargo doc in the “pre-commit” phase. We have to resort to wrapping the command in a shell script, since we cannot configure environment variables via .pre-commit.yaml but need RUSTDOCFLAGS so that cargo doc actually exists non-zero when there are warnings.
  2. Move cargo check from the “pre-push” to the “pre-commit” phase, as it is relatively quick, and redundant to run before clippy.
  3. Let cargo check and cargo doc run after rustfmt.
  4. Let a failure of rustfmt fail the whole check.
  5. Wire through packageOverrides to rustfmt so we use the same toolchain as the other tools.
  6. Additionally enable cargo clippy to consider all features.
fintohaps merged revision 858b52b6 at d7aa2d9d 8 months ago