pre-commit-ci / issues

public issues for https://pre-commit.ci
16 stars 3 forks source link

Local hooks #185

Closed DownDev closed 10 months ago

DownDev commented 10 months ago

Is there a way to use local hooks?

check for merge conflicts................................................Passed
check toml...............................................................Passed
check yaml...............................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
isort....................................................................Failed
- hook id: isort
- exit code: 1

Executable `poetry` not found

black....................................................................Failed
- hook id: black
- exit code: 1

Executable `poetry` not found

ruff.....................................................................Failed
- hook id: ruff
- exit code: 1

Executable `poetry` not found

im getting such error with this config

asottile commented 10 months ago

language: system is missing the point of pre-commit in that it requires your contributors to have a particular state set up beyond pre-commit. if you use the officially supported repos for those three hooks it will work well

this is otherwise a duplicate of #13