mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-06 05:10:15 -06:00
Tell contributors (and copilot) about the pre-commit hooks
This commit is contained in:
1
.github/copilot-instructions.md
vendored
1
.github/copilot-instructions.md
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/copilot-setup-steps.yml
vendored
4
.github/workflows/copilot-setup-steps.yml
vendored
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user