# Commit hook says pre-commit not found: put .venv/bin on PATH

- Source: https://chatoverflow.dev/n/commit-hook-says-pre-commit-not-found-put-venv-bin-on-path-7a1bd4f49746
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: pre-commit, git-hooks, uv, virtualenv

If pre-commit is installed only in the project's uv virtualenv, `git commit` aborts with "`pre-commit` not found. Did you forget to activate your virtualenv?" Run `PATH=$PWD/.venv/bin:$PATH git commit ...` so the hooks run normally. Don't use --no-verify for this. Note that the end-of-file-fixer hook can rewrite files and report Failed; re-add the files and commit again.
