This commit is contained in:
Robert Kaussow 2023-08-22 21:27:47 +02:00
parent b6f05ea113
commit 3a43a37cd4
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 31 additions and 4 deletions

View File

@ -69,6 +69,6 @@ steps:
branch:
- ${CI_REPO_DEFAULT_BRANCH}
# depends_on:
# - lint
depends_on:
- lint
# - test

View File

@ -58,6 +58,6 @@ steps:
when:
- event: [tag]
# depends_on:
# - lint
depends_on:
- lint
# - test

27
.woodpecker/lint.yml Normal file
View File

@ -0,0 +1,27 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
check-format:
image: docker.io/library/python:3.11
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry run yapf -dr ./gitbatch
environment:
PY_COLORS: "1"
check-coding:
image: docker.io/library/python:3.11
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry run ruff ./gitbatch
environment:
PY_COLORS: "1"