From 547e423df08411d11249a5e5d8dbc114bcb8ec57 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Tue, 29 Jul 2025 12:22:35 +0200 Subject: [PATCH] Remove '. bin/activate' from pre-commit hook that assumes my particular setup (top-level venv) which is unusual. better have 'active env' as a requirement for the script instead --- pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre-commit b/pre-commit index fa62047..28d3f83 100755 --- a/pre-commit +++ b/pre-commit @@ -2,8 +2,8 @@ # this script must be placed in .git/hooks/pre-commit for it to run automatically # it is put here in the repo so that it can be used by anyone who clones the repo - -. bin/activate +# it assumes the environment to run `python manage.py tailwind build` is already set up +# and activated should_run=$(git diff --cached --name-only -z | python tools/is_tracked_by_tailwind.py)