From 2596ab7fc853d3d0b8f313af7d2ac39ba8999e52 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 13 Sep 2025 21:11:30 +0800 Subject: [PATCH] Update lint step --- .woodpecker/.lint.yml | 3 ++- README.md | 2 +- src/tests/users/test_user_login_query_self.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker/.lint.yml b/.woodpecker/.lint.yml index f932982..563d061 100644 --- a/.woodpecker/.lint.yml +++ b/.woodpecker/.lint.yml @@ -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: diff --git a/README.md b/README.md index 0e9e37c..4d02238 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/tests/users/test_user_login_query_self.py b/src/tests/users/test_user_login_query_self.py index e9cf225..45a977b 100644 --- a/src/tests/users/test_user_login_query_self.py +++ b/src/tests/users/test_user_login_query_self.py @@ -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()