Compare commits

...

2 commits

Author SHA1 Message Date
4b515702e3
specify which tests to run
Some checks failed
Build and Deploy / deploy (push) Blocked by required conditions
Build and Deploy / build (push) Successful in 38s
Django Tests / test (push) Has been cancelled
2025-06-20 15:10:43 +02:00
349c38ace4
add cursor project rules 2025-06-20 15:08:35 +02:00
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
---
description:
globs:
alwaysApply: true
---
- This is a Django project which uses SQLite as the database.
- Follow Django conventions and best practices; use the Django ORM and define fields with appropriate types.
- Use function-based views and follow Django conventions for naming and structuring views.
- Templates use the Django template language and Bootstrap 5 CSS and JavaScript for styling.
- The main Django app is in `hub/services`; ignore the app `hub/broker`.
- Docker-specific code is in the folder `docker/`.
- Kubernetes deployment-specific files are in `deployment/`.
- GitLab CI is used as the main CI/CD system.
- The project uses Astral uv to manage the Python project, dependencies, and the venv.
- Execute Django with `uv run --extra dev manage.py`.
- Always add comments to the code to describe what's happening.
- Answers should be short and concise, and should not include any unnecessary comments or explanations, but be clear on which file a code block should be placed in.

View file

@ -31,4 +31,4 @@ jobs:
-w /app \ -w /app \
-e SECRET_KEY=dummysecretkey \ -e SECRET_KEY=dummysecretkey \
website:test \ website:test \
sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test --verbosity=2' sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test hub.services.tests --verbosity=2'