2022-09-12 17:31:22 +02:00
|
|
|
# https://woodpecker-ci.org/docs/usage/pipeline-syntax
|
|
|
|
pipeline:
|
|
|
|
typecheck:
|
|
|
|
image: python:latest
|
|
|
|
group: linting
|
|
|
|
commands:
|
2022-09-12 17:41:27 +02:00
|
|
|
- echo $SHELL
|
2022-09-12 17:31:22 +02:00
|
|
|
- python --version
|
|
|
|
- pip install -U virtualenv --quiet
|
|
|
|
- virtualenv venv
|
|
|
|
- source venv/bin/activate
|
|
|
|
- pip install -U pyright --quiet
|
|
|
|
- pyright woodpeckerpy/main.py
|
|
|
|
|
|
|
|
format:
|
|
|
|
image: python:latest
|
|
|
|
group: linting
|
|
|
|
commands:
|
|
|
|
- python --version
|
|
|
|
- pip install -U virtualenv --quiet
|
|
|
|
- virtualenv venv
|
|
|
|
- source venv/bin/activate
|
|
|
|
- pip install -U black --quiet
|
|
|
|
- black woodpeckerpy/main.py
|