Tell contributors (and copilot) about the pre-commit hooks

This commit is contained in:
Klaas van Schelven
2025-07-29 12:18:29 +02:00
parent 3c00ab2da7
commit 00a686d103
3 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ abstract generality. Python 3.12 is the standard environment.
* Bugsink uses Tailwind via `django-tailwind` * Bugsink uses Tailwind via `django-tailwind`
* Before committing, build the CSS and add it: * Before committing, build the CSS and add it:
`python manage.py tailwind build && git add theme/static/css/dist/styles.css` `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 ##### Other

View File

@@ -24,6 +24,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install project `pre-commit` hook
run: |
cp pre-commit .git/hooks/pre-commit
- name: Set up Python 3.12 - name: Set up Python 3.12
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:

View File

@@ -40,6 +40,8 @@ python manage.py tailwind build
git add theme/static/css/dist/styles.css 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 ### Security