Format with isort/ruff and implement linter step in Woodpecker

This commit is contained in:
Keannu Christian Bernasol 2025-09-13 21:00:44 +08:00
parent a3a9351682
commit cae8e1c411
10 changed files with 38 additions and 22 deletions

27
.woodpecker/.lint.yml Normal file
View 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