DRF_Template/.woodpecker/.lint.yml
2025-09-14 01:15:09 +08:00

30 lines
799 B
YAML

labels:
platform: linux/amd64
steps:
- name: lint
image: astral/uv:python3.13-trixie-slim
commands:
- uv sync --frozen --cache-dir /.cache/uv --link-mode=copy
- export PATH=".venv/bin:$PATH"
- ruff check src/. --no-fix --diff
- isort --check --diff src/.
volumes:
- /tmp/.uv:/.cache/uv # Optimization: Shared UV cache on local build server
- 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