Lefthook Git Hooks Manager

Lefthook is a fast, dependency-free Git hooks manager written in Go that runs pre-commit, pre-push, and custom hook commands in parallel. It integrates with Node.js, Ruby, Python, and any other project type through a simple YAML configuration.

agentskillexchange Updated 28 repo stars

File contents

Lefthook Git Hooks Manager

Lefthook is a fast, dependency-free Git hooks manager written in Go that runs pre-commit, pre-push, and custom hook commands in parallel. It integrates with Node.js, Ruby, Python, and any other project type through a simple YAML configuration.

Installation

Use the upstream install or setup path that matches your environment:

  • go install github.com/evilmartians/lefthook/v2@v2.1.6
  • npm install lefthook --save-dev
  • gem install lefthook
  • pipx install lefthook

Requirements and caveats from upstream:

  • A Git hooks manager for Node.js, Ruby, Python and many other types of projects.
  • For Python:
  • Support Docker

Basic usage or getting-started notes:

Source

agentskillexchange/skills/tree/main/skills/lefthook-git-hooks-manager commit 3c786a5e4a

Frequently asked questions

npx skillmds@latest add agentskillexchange/lefthook-git-hooks-manager