Initialize boilerplate (#1)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-authored-by: Val Lorentz <progval+opdb@progval.net> Reviewed-on: #1
This commit is contained in:
parent
beec4da821
commit
efe3aaccd4
|
@ -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
|
|
@ -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,0 +1,2 @@
|
|||
def test_foo():
|
||||
pass
|
|
@ -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"
|
Loading…
Reference in New Issue