From 7cd64437f478a0ad94b3da5be91b6051994827ec Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Wed, 14 Sep 2022 17:20:51 +0200 Subject: [PATCH] Initialize with CI --- .woodpecker.yml | 33 +++++++++++++++++++++++++++++++++ opdb/__init__.py | 0 pyproject.toml | 11 +++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 opdb/__init__.py create mode 100644 pyproject.toml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..28a337f --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/opdb/__init__.py b/opdb/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dcb66ab --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,11 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "opdb" +version = "0.0.1" +dependencies = [ + "requests", + "luigi", +]