Compare commits

...

5 Commits
main ... ci

Author SHA1 Message Date
Val Lorentz 511d54473d No Make in the Black container
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2022-09-14 18:26:53 +02:00
Val Lorentz d576b12586 Add Makefile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-14 18:25:50 +02:00
Val Lorentz 7c9a3b5b50 Properly initialize pytest
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-14 18:20:33 +02:00
Val Lorentz 9cd549d30c /usr is not persisted across steps
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-14 18:15:49 +02:00
Val Lorentz 7cd64437f4 Initialize with CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-14 18:03:19 +02:00
5 changed files with 62 additions and 0 deletions

28
.woodpecker.yml Normal file
View File

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

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

0
opdb/__init__.py Normal file
View File

2
opdb/foo_test.py Normal file
View File

@ -0,0 +1,2 @@
def test_foo():
pass

14
pyproject.toml Normal file
View File

@ -0,0 +1,14 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "opdb"
version = "0.0.1"
dependencies = [
"requests",
"luigi",
]
[tool.pytest.ini_options]
python_files = "*_test.py"