Initialize boilerplate #1

Merged
val merged 5 commits from ci into main 2022-09-14 16:33:41 +00:00
2 changed files with 22 additions and 4 deletions
Showing only changes of commit d576b12586 - Show all commits

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