python/.woodpecker/linting.yml

24 lines
601 B
YAML
Raw Normal View History

2022-09-12 17:31:22 +02:00
# 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