diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 7201dbc..2a68040 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -32,6 +32,7 @@ abstract generality. Python 3.12 is the standard environment. * Bugsink uses Tailwind via `django-tailwind` * Before committing, build the CSS and add it: `python manage.py tailwind build && git add theme/static/css/dist/styles.css` + (this is done automatically if you use the pre-commit hook from the repo root) ##### Other diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 5976603..1052d7c 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -24,6 +24,10 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Install project `pre-commit` hook + run: | + cp pre-commit .git/hooks/pre-commit + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 44f966e..892313a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -40,6 +40,8 @@ python manage.py tailwind build git add theme/static/css/dist/styles.css ``` +The pre-commit hook in the project's root does this automatically if needed, copy it to .git/hooks +to auto-run. ### Security