Update lint step

This commit is contained in:
Keannu Christian Bernasol 2025-09-13 21:11:30 +08:00
parent cae8e1c411
commit 2596ab7fc8
3 changed files with 5 additions and 3 deletions

View file

@ -7,7 +7,8 @@ steps:
commands: commands:
- uv sync --frozen - uv sync --frozen
- export PATH=".venv/bin:$PATH" - export PATH=".venv/bin:$PATH"
- ruff check src/. --no-fix --diff --show-files --verbose - ruff check src/. --no-fix --diff
- isort --check --diff src/.
- name: discord - name: discord
image: appleboy/drone-discord image: appleboy/drone-discord
settings: settings:

View file

@ -8,7 +8,7 @@ A barebones Django REST Framework template for personal use in projects.
- Pre-templated emails - Pre-templated emails
- Caching via Redis - Caching via Redis
- Debug mode profiling (via Django Silk) - Debug mode profiling (via Django Silk)
- A working Woodpecker CI/CD template for automated deployments (see [service_queue](https://github.com/lemeow125/Service_Queue) for more info) - Template CI/CD for automated builds/tests/linting/deployments (see [service_queue](https://github.com/lemeow125/Service_Queue) for more info)
A live API demo can be found [here](https://api.template.06222001.xyz/api/v1/swagger) A live API demo can be found [here](https://api.template.06222001.xyz/api/v1/swagger)

View file

@ -21,7 +21,8 @@ def test_user_login():
for user in data["users"]: for user in data["users"]:
login_response = client.post( login_response = client.post(
"/api/v1/accounts/jwt/create/", "/api/v1/accounts/jwt/create/",
{"username": user["username"], "password": config.DEBUG_USER_PASSWORD}, {"username": user["username"],
"password": config.DEBUG_USER_PASSWORD},
format="json", format="json",
).json() ).json()