ci: switch CI from Forgejo Actions to Woodpecker CI
All checks were successful
ci/woodpecker/push/style Pipeline was successful

This commit is contained in:
June 2024-06-22 18:03:36 +02:00
parent 744bbdb245
commit d8b0e80487
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
2 changed files with 18 additions and 23 deletions

View file

@ -1,23 +0,0 @@
# Links & Resources:
# - https://hatch.pypa.io/latest/install/#github-actions
# - https://docs.astral.sh/ruff/integrations/#github-actions
# - https://black.readthedocs.io/en/stable/integrations/github_actions.html
on: push
jobs:
ruff:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install Hatch
uses: https://github.com/pypa/hatch@install
- name: Run Ruff
run: hatch run lint:ruff check --output-format=github .
black:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install Hatch
uses: https://github.com/pypa/hatch@install
- name: Run Black
run: hatch run lint:black --check --diff .

18
.woodpecker/style.yaml Normal file
View file

@ -0,0 +1,18 @@
# Links & Resources
# - https://hub.docker.com/_/python
# - https://docs.astral.sh/ruff/installation/
# - https://black.readthedocs.io/en/stable/usage_and_configuration/black_docker_image.html
when:
event: [push, pull_request]
steps:
- name: ruff
image: python
commands:
- pip install ruff
- ruff check .
- name: black
image: pyfound/black
commands:
- black --check --diff .