xoxys.general/.woodpecker/lint.yml

28 lines
658 B
YAML
Raw Normal View History

2023-12-12 20:58:01 +00:00
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
check-format:
image: docker.io/library/python:3.12
commands:
- git fetch --depth=2147483647
- pip install poetry -qq
- poetry install --all-extras --no-root
- poetry run ruff format --check --diff ./plugins
environment:
PY_COLORS: "1"
check-coding:
image: docker.io/library/python:3.12
commands:
- git fetch --depth=2147483647
- pip install poetry -qq
- poetry install --all-extras --no-root
- poetry run ruff ./plugins
environment:
PY_COLORS: "1"