24 lines
601 B
YAML
24 lines
601 B
YAML
|
# https://woodpecker-ci.org/docs/usage/pipeline-syntax
|
||
|
pipeline:
|
||
|
typecheck:
|
||
|
image: python:latest
|
||
|
group: linting
|
||
|
commands:
|
||
|
- 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
|