Poetry dev (#837)
* black and isort for tests * black and isort for build * use poetry in Makefile, update pyproject.toml dependencies and add configs for black, pytest, mypy, isort there * switching github workflow to poetry * set mininum version to python 3.7 * fix tests * add types-protobuf to dev packages * fix cln regtest * update docs * try fix 1 * mypy fix2 * fix isort formatting workflow * add prettier to dev docs * multiple valid python version for pyproject * update poetry.lock * remove development installation, not needed anymore * fix migration workflows * format into one test * fix yaml * fix pipeline * fix pipeline * fix again * fix * rename checks * remove venv tests * venv test once Co-authored-by: dni <dni.khr@gmail.com>
This commit is contained in:
parent
2edaa0ee03
commit
8535d70d36
22 changed files with 689 additions and 286 deletions
|
|
@ -9,8 +9,8 @@ generate-setup-file = false
|
|||
script = "build.py"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "3.9.*"
|
||||
aiofiles = "0.7.0"
|
||||
python = "^3.9 | ^3.8 | ^3.7"
|
||||
aiofiles = "0.8.0"
|
||||
asgiref = "3.4.1"
|
||||
attrs = "21.2.0"
|
||||
bech32 = "1.2.0"
|
||||
|
|
@ -24,15 +24,15 @@ embit = "0.4.9"
|
|||
environs = "9.3.3"
|
||||
fastapi = "0.78.0"
|
||||
h11 = "0.12.0"
|
||||
httpcore = "0.13.7"
|
||||
httptools = "0.2.0"
|
||||
httpx = "0.19.0"
|
||||
httpcore = "0.15.0"
|
||||
httptools = "0.4.0"
|
||||
httpx = "0.23.0"
|
||||
idna = "3.2"
|
||||
importlib-metadata = "4.8.1"
|
||||
jinja2 = "3.0.1"
|
||||
lnurl = "0.3.6"
|
||||
markupsafe = "2.0.1"
|
||||
marshmallow = "3.13.0"
|
||||
marshmallow = "3.17.0"
|
||||
outcome = "1.1.0"
|
||||
psycopg2-binary = "2.9.1"
|
||||
pycryptodomex = "3.14.1"
|
||||
|
|
@ -49,7 +49,7 @@ shortuuid = "1.0.1"
|
|||
six = "1.16.0"
|
||||
sniffio = "1.2.0"
|
||||
sqlalchemy = "1.3.23"
|
||||
sqlalchemy-aio = "0.16.0"
|
||||
sqlalchemy-aio = "0.17.0"
|
||||
sse-starlette = "0.6.2"
|
||||
typing-extensions = "3.10.0.2"
|
||||
uvicorn = "0.18.1"
|
||||
|
|
@ -62,6 +62,14 @@ cffi = "1.15.0"
|
|||
websocket-client = "1.3.3"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
isort = "^5.10.1"
|
||||
pytest = "^7.1.2"
|
||||
mock = "^4.0.3"
|
||||
black = "^22.6.0"
|
||||
pytest-asyncio = "^0.19.0"
|
||||
pytest-cov = "^3.0.0"
|
||||
mypy = "^0.971"
|
||||
types-protobuf = "^3.19.22"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
|
@ -69,3 +77,20 @@ build-backend = "poetry.core.masonry.api"
|
|||
|
||||
[tool.poetry.scripts]
|
||||
lnbits = "lnbits.server:main"
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
|
||||
[tool.mypy]
|
||||
ignore_missing_imports = "True"
|
||||
files = "lnbits"
|
||||
exclude = """(?x)(
|
||||
^lnbits/extensions.
|
||||
| ^lnbits/wallets/lnd_grpc_files.
|
||||
)"""
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "--durations=1 -s --cov=lnbits --cov-report=xml"
|
||||
testpaths = [
|
||||
"tests"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue