mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Format with isort/ruff and implement linter step in Woodpecker
This commit is contained in:
parent
a3a9351682
commit
cae8e1c411
10 changed files with 38 additions and 22 deletions
27
.woodpecker/.lint.yml
Normal file
27
.woodpecker/.lint.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
labels:
|
||||
platform: linux/amd64
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
image: astral/uv:python3.13-trixie-slim
|
||||
commands:
|
||||
- uv sync --frozen
|
||||
- export PATH=".venv/bin:$PATH"
|
||||
- ruff check src/. --no-fix --diff --show-files --verbose
|
||||
- name: discord
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: DISCORD_WEBHOOK_ID
|
||||
webhook_token:
|
||||
from_secret: DISCORD_WEBHOOK_TOKEN
|
||||
message: >
|
||||
{{#success build.status}}
|
||||
{{repo.name}}: Lint step for build #{{build.number}} output {{build.status}}
|
||||
{{/success}}
|
||||
|
||||
when:
|
||||
- branch: master
|
||||
event:
|
||||
- push
|
||||
- manual
|
Loading…
Add table
Add a link
Reference in a new issue