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}
commands:
- pip3 install flake8
- flake8 opdb/
- make flake8
mypy:
group: lint
image: python:${PYTHON_VERSION}
commands:
- pip3 install mypy
- mypy opdb
- make mypy
black:
group: lint
image: pyfound/black:22.8.0
commands:
- black --check opdb/
- make black-check
test:
image: python:${PYTHON_VERSION}
commands:
- pip3 install . pytest
- pytest
- make pytest
matrix:
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