Add Makefile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Val Lorentz 2022-09-14 18:25:50 +02:00
parent 7c9a3b5b50
commit d576b12586
2 changed files with 22 additions and 4 deletions

View File

@ -4,23 +4,23 @@ pipeline:
image: python:${PYTHON_VERSION} image: python:${PYTHON_VERSION}
commands: commands:
- pip3 install flake8 - pip3 install flake8
- flake8 opdb/ - make flake8
mypy: mypy:
group: lint group: lint
image: python:${PYTHON_VERSION} image: python:${PYTHON_VERSION}
commands: commands:
- pip3 install mypy - pip3 install mypy
- mypy opdb - make mypy
black: black:
group: lint group: lint
image: pyfound/black:22.8.0 image: pyfound/black:22.8.0
commands: commands:
- black --check opdb/ - make black-check
test: test:
image: python:${PYTHON_VERSION} image: python:${PYTHON_VERSION}
commands: commands:
- pip3 install . pytest - pip3 install . pytest
- pytest - make pytest
matrix: matrix:
PYTHON_VERSION: PYTHON_VERSION:

18
Makefile Normal file
View File

@ -0,0 +1,18 @@
black-check:
black --check opdb/
black:
black opdb/
flake8:
flake8 opdb/
mypy:
mypy opdb
pytest:
pytest
test: black flake8 mypy pytest
.PHONY: black black-check flake8 mypy pytest test