28 lines
658 B
YAML
28 lines
658 B
YAML
---
|
|
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"
|