python/.woodpecker/linting.yml
RealStickman aff5a109cf
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/deploy unknown status
ci/woodpecker/push/linting Pipeline failed
Add linting pipeline. Add status badge
2022-09-12 17:31:22 +02:00

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