lefthook icon indicating copy to clipboard operation
lefthook copied to clipboard

Fast and powerful Git hooks manager for any type of projects.

Results 148 lefthook issues
Sort by recently updated
recently updated
newest added

Is there a way to install lefthook on Windows using `chocolatey` package manager or `winget`? I want to write a bash script to automate this process of installing lefthook on...

enhancement
Windows

Currently as far as I can see the only way to specify an environment variable is to use something like this: ```yaml pre-commit: parallel: true commands: cmd: run: FOO=1 printenv...

enhancement

For exemple place it to `projectDir/config` directory

enhancement

We use Lefthook in hybrid development environments: some engineers use local setup, some use [Docker/Dip](). The base configuration is local-first, so Docker devs use `lefthook-local.yml` with the following contents: ```yml...

enhancement

Unfortunately the commitlint documentation only has these instructions: ```json { "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } } } ``` And it's unclear whether lefthook exposes whatever `HUSKY_GIT_PARAMS`...

We use Lefthook to apply prettier during commit, our config looks like this: ``` pre-commit: parallel: true commands: js: glob: "*.js" run: yarn prettier --write {staged_files} && git add {staged_files}...

This is likely a documentation issue. When using Lefthook Git hooks the commit flow is 'broken by the output generated by Lefthook (see below). The consequence is that the commit...

``` ➜ npx -- @arkweid/lefthook install internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module '/root/.npm/_npx/459/lib/node_modules/@arkweid/lefthook/postinstall.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47 { code:...

I'm trying to get `lefthook` to play with my monorepo as per #72. My project structure is as follows: ```sh ├── client │   ├── const.config.js │   ├── dist │   ├──...

waiting for response

I am trying to use ansible-lint for linting which is installed in `.venv/bin`. `.venv/bin` is part of the path. ``` $ which lefthook /home/jtole/go/bin/lefthook $ lefthook run pre-commit Lefthook v0.7.7...