hooksmith 1.0.0

Trivial git hook management tool
Documentation
hooksmith-1.0.0 has been yanked.

Features

  • ⚙️ Automate the hooks installation process with build.rs files.
  • 💻 Run hooks locally without triggering them via Git.

Installation

With Cargo

You can install it using cargo:

cargo install hooksmith

Build Dependency

You can add it as a build dependency:

cargo add --build hooksmith

Then create a build.rs file:

pub fn main() {
    hooksmith::init();
}

Usage

Create a configuration file named monk.yaml in your project root:

pre-commit:
  commands:
    - cargo fmt --all -- --check
    - cargo clippy --workspace --release --all-targets --all-features -- --deny warnings

pre-push:
  commands:
    - cargo test