mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-06 05:10:15 -06:00
GitHub copilot instructions: WIP
This commit is contained in:
8
.github/copilot-instructions.md
vendored
8
.github/copilot-instructions.md
vendored
@@ -4,10 +4,12 @@ abstract generality. Python 3.12 is the standard environment.
|
||||
## Coding Guidance
|
||||
|
||||
* Keep it clear and simple.
|
||||
* Avoid overly clever or verbose code — this isn't Java.
|
||||
* Use Django idioms: models, views, middleware, etc.
|
||||
* Follow PEP8 and ensure `flake8` passes (CI ignores E127, E741, E501, E731).
|
||||
* Use descriptive names, short functions, minimal boilerplate.
|
||||
* Avoid overly clever or verbose code -- this isn't Java.
|
||||
* Avoid overcommenting: only comment to explain unusual or complex logic or
|
||||
design decisions
|
||||
* Follow PEP8 and ensure `flake8` passes (CI ignores E741, E731). width: 120 columns.
|
||||
* Use Django idioms: models, views, middleware, etc.
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
15
.github/workflows/copilot-setup-steps.yml
vendored
15
.github/workflows/copilot-setup-steps.yml
vendored
@@ -17,6 +17,9 @@ jobs:
|
||||
env:
|
||||
DJANGO_SETTINGS_MODULE: bugsink.settings.development
|
||||
SAMPLES_DIR: ${{ github.workspace }}/event-samples
|
||||
DJANGO_SUPERUSER_USERNAME: admin
|
||||
DJANGO_SUPERUSER_EMAIL: admin@example.com
|
||||
DJANGO_SUPERUSER_PASSWORD: admin
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
@@ -36,9 +39,19 @@ jobs:
|
||||
# To ensure correctness for more complex scenarios (e.g. multiple DBs),
|
||||
# we rely on the actual CI pipeline.
|
||||
|
||||
- name: Run migrations
|
||||
run: |
|
||||
python manage.py migrate
|
||||
# Ensures the SQLite database is initialized.
|
||||
|
||||
- name: Create superuser
|
||||
run: |
|
||||
python manage.py createsuperuser --noinput || true
|
||||
# Creates a default admin user so Copilot can log in if needed.
|
||||
# `|| true` prevents failure if the user already exists.
|
||||
|
||||
- name: Fetch event-samples data
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: bugsink/event-samples
|
||||
path: event-samples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user