Initialize with CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Val Lorentz 2022-09-14 17:20:51 +02:00
parent beec4da821
commit 7cd64437f4
3 changed files with 44 additions and 0 deletions

33
.woodpecker.yml Normal file
View File

@ -0,0 +1,33 @@
pipeline:
install-linters:
image: python:${PYTHON_VERSION}
commands:
- pip3 install flake8 mypy black
flake8:
group: lint
image: python:${PYTHON_VERSION}
commands:
- flake8 opdb/
mypy:
group: lint
image: python:${PYTHON_VERSION}
commands:
- mypy opdb
black:
group: lint
image: python:${PYTHON_VERSION}
commands:
- black --check opdb/
install:
image: python:${PYTHON_VERSION}
commands:
- pip3 install .
test:
image: python:${PYTHON_VERSION}
commands:
- pytest
matrix:
PYTHON_VERSION:
- 3.7
- 3.10

0
opdb/__init__.py Normal file
View File

11
pyproject.toml Normal file
View File

@ -0,0 +1,11 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "opdb"
version = "0.0.1"
dependencies = [
"requests",
"luigi",
]