mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Update lint step
This commit is contained in:
parent
cae8e1c411
commit
2596ab7fc8
3 changed files with 5 additions and 3 deletions
|
@ -7,7 +7,8 @@ steps:
|
|||
commands:
|
||||
- uv sync --frozen
|
||||
- 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
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
|
|
|
@ -8,7 +8,7 @@ A barebones Django REST Framework template for personal use in projects.
|
|||
- Pre-templated emails
|
||||
- Caching via Redis
|
||||
- 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)
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@ def test_user_login():
|
|||
for user in data["users"]:
|
||||
login_response = client.post(
|
||||
"/api/v1/accounts/jwt/create/",
|
||||
{"username": user["username"], "password": config.DEBUG_USER_PASSWORD},
|
||||
{"username": user["username"],
|
||||
"password": config.DEBUG_USER_PASSWORD},
|
||||
format="json",
|
||||
).json()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue