2022-07-08 10:22:35 +02:00
|
|
|
[tool.poetry]
|
|
|
|
name = "lnbits"
|
2023-01-26 14:28:10 +01:00
|
|
|
version = "0.9.7"
|
2023-01-10 12:25:11 +01:00
|
|
|
description = "LNbits, free and open-source Lightning wallet and accounts system."
|
2023-01-12 15:47:42 +01:00
|
|
|
authors = ["Alan Bits <alan@lnbits.com>"]
|
2022-07-08 10:22:35 +02:00
|
|
|
|
|
|
|
[tool.poetry.build]
|
|
|
|
generate-setup-file = false
|
|
|
|
script = "build.py"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2022-09-23 10:02:23 +02:00
|
|
|
python = "^3.10 | ^3.9 | ^3.8 | ^3.7"
|
2022-08-03 14:10:32 +02:00
|
|
|
aiofiles = "0.8.0"
|
2022-09-29 20:42:13 +02:00
|
|
|
asgiref = "3.4.1"
|
2023-01-15 11:24:11 +01:00
|
|
|
attrs = "22.2.0"
|
2022-07-08 10:22:35 +02:00
|
|
|
bech32 = "1.2.0"
|
|
|
|
bitstring = "3.1.9"
|
2023-01-15 11:24:11 +01:00
|
|
|
certifi = "2022.12.7"
|
2022-11-30 16:24:13 +01:00
|
|
|
charset-normalizer = "2.0.12"
|
|
|
|
click = "8.0.4"
|
|
|
|
ecdsa = "0.18.0"
|
2022-07-08 10:22:35 +02:00
|
|
|
embit = "0.4.9"
|
2022-12-01 12:28:28 +01:00
|
|
|
fastapi = "0.83.0"
|
2022-07-08 10:22:35 +02:00
|
|
|
h11 = "0.12.0"
|
2022-09-29 20:42:13 +02:00
|
|
|
httpcore = "0.15.0"
|
2022-08-03 14:10:32 +02:00
|
|
|
httptools = "0.4.0"
|
|
|
|
httpx = "0.23.0"
|
2022-11-30 16:24:13 +01:00
|
|
|
idna = "3.4"
|
2023-01-15 11:24:11 +01:00
|
|
|
importlib-metadata = "5.2.0"
|
2022-09-29 20:42:13 +02:00
|
|
|
jinja2 = "3.0.1"
|
2022-07-08 10:22:35 +02:00
|
|
|
lnurl = "0.3.6"
|
2022-09-29 20:42:13 +02:00
|
|
|
markupsafe = "2.0.1"
|
2023-01-15 11:24:11 +01:00
|
|
|
marshmallow = "3.19.0"
|
2022-11-30 16:24:13 +01:00
|
|
|
outcome = "1.2.0"
|
2022-09-29 20:42:13 +02:00
|
|
|
psycopg2-binary = "2.9.1"
|
2023-01-15 11:24:11 +01:00
|
|
|
pycryptodomex = "3.16.0"
|
|
|
|
pydantic = "1.10.4"
|
2022-07-08 10:22:35 +02:00
|
|
|
pypng = "0.0.21"
|
|
|
|
pyqrcode = "1.2.1"
|
2022-09-23 10:02:23 +02:00
|
|
|
pyScss = "1.4.0"
|
2022-07-08 10:22:35 +02:00
|
|
|
pyyaml = "5.4.1"
|
|
|
|
represent = "1.6.0.post0"
|
|
|
|
rfc3986 = "1.5.0"
|
|
|
|
secp256k1 = "0.14.0"
|
|
|
|
shortuuid = "1.0.1"
|
|
|
|
six = "1.16.0"
|
2022-11-30 16:24:13 +01:00
|
|
|
sniffio = "1.3.0"
|
|
|
|
sqlalchemy = "1.3.24"
|
2022-08-03 14:10:32 +02:00
|
|
|
sqlalchemy-aio = "0.17.0"
|
2022-07-08 10:22:35 +02:00
|
|
|
sse-starlette = "0.6.2"
|
2023-01-26 13:51:12 +01:00
|
|
|
typing-extensions = "4.4.0"
|
2022-11-30 16:24:13 +01:00
|
|
|
uvicorn = "0.18.3"
|
2022-07-08 10:22:35 +02:00
|
|
|
uvloop = "0.16.0"
|
|
|
|
watchgod = "0.7"
|
|
|
|
websockets = "10.0"
|
2023-01-15 11:24:11 +01:00
|
|
|
zipp = "3.11.0"
|
2022-11-30 16:24:13 +01:00
|
|
|
loguru = "0.6.0"
|
|
|
|
cffi = "1.15.1"
|
2022-08-01 19:58:36 +02:00
|
|
|
websocket-client = "1.3.3"
|
2023-01-26 14:24:17 +01:00
|
|
|
grpcio = "1.51.1"
|
|
|
|
protobuf = "4.21.12"
|
2023-01-26 13:51:12 +01:00
|
|
|
Cerberus = "1.3.4"
|
|
|
|
async-timeout = "4.0.2"
|
2022-09-30 13:55:46 +02:00
|
|
|
pyln-client = "0.11.1"
|
2023-01-26 13:35:27 +01:00
|
|
|
boltz-client = "0.1.3"
|
2023-01-30 09:29:44 +01:00
|
|
|
cashu = "0.9.0"
|
2022-11-30 16:24:13 +01:00
|
|
|
|
2022-07-08 10:22:35 +02:00
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
2022-08-03 14:10:32 +02:00
|
|
|
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"
|
2023-01-20 11:43:16 +01:00
|
|
|
flake8 = { version = "^6.0.0", python = ">=3.8.1" }
|
|
|
|
pylint = { version = "^2.15.10", python = ">=3.7.2" }
|
2022-07-08 10:22:35 +02:00
|
|
|
|
|
|
|
[build-system]
|
2022-09-23 10:02:44 +02:00
|
|
|
requires = ["poetry-core>=1.0.0", "pyScss"]
|
2022-07-08 10:22:35 +02:00
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
lnbits = "lnbits.server:main"
|
2022-08-03 14:10:32 +02:00
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
|
2023-01-23 10:29:17 +01:00
|
|
|
[tool.pyright]
|
|
|
|
include = [
|
|
|
|
"lnbits"
|
|
|
|
]
|
|
|
|
exclude = [
|
|
|
|
"lnbits/wallets/lnd_grpc_files",
|
|
|
|
]
|
|
|
|
|
2022-08-03 14:10:32 +02:00
|
|
|
[tool.mypy]
|
|
|
|
files = "lnbits"
|
|
|
|
exclude = """(?x)(
|
boltz extension v2, recurring swaps (#981)
* add status to statusdialog
* first commits for boltz update
* formatting
* add latest boltz-clien package
* big refactor, depending on boltz_client package, clean up, mypy issues, not tested yet
* blacking, sorting and stuff
* remove unused req_wrap helper
* remove api docs from frontend
* bug: frontend boltz limits error
* clean up buttons
* update to boltz-client 0.0.8
* fix tests to poetry version 1.3.1
* update requirements
* formatting
* recurring swap works now, need more finetuning
* add exceptions for multiple auto swaps and swapping in with active auto swap
* black
* auto reverse swap actually works :)
* remove swap status dialogs
* update to boltz_client 0.0.9
* update to boltz-client 0.1.1, and fix startup
* update requirement.txt for boltz-client
* fixup columns in table, remove unused payment.extra, change deezy label
* remove balance check for auto swap out
* update boltzc-lient to 0.1.2, fix mypy issue inside boltz package
* nitpicks calle tasks.py
* calle nitpicks crud
* calle nitpicks crud
* refactor
* fix formatting
* circular import
* black :)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-01-19 10:30:47 +01:00
|
|
|
^lnbits/wallets/lnd_grpc_files.
|
2022-08-03 14:10:32 +02:00
|
|
|
)"""
|
|
|
|
|
2023-01-09 10:53:30 +01:00
|
|
|
[[tool.mypy.overrides]]
|
2023-01-09 16:35:19 +01:00
|
|
|
module = [
|
|
|
|
"embit.*",
|
2023-01-09 16:56:49 +01:00
|
|
|
"secp256k1.*",
|
|
|
|
"uvicorn.*",
|
|
|
|
"sqlalchemy.*",
|
|
|
|
"sqlalchemy_aio.*",
|
|
|
|
"websocket.*",
|
|
|
|
"websockets.*",
|
|
|
|
"pyqrcode.*",
|
|
|
|
"cashu.*",
|
|
|
|
"shortuuid.*",
|
|
|
|
"grpc.*",
|
|
|
|
"lnurl.*",
|
|
|
|
"bitstring.*",
|
|
|
|
"ecdsa.*",
|
|
|
|
"psycopg2.*",
|
2023-01-11 12:40:02 +01:00
|
|
|
"pyngrok.*",
|
2023-01-09 16:35:19 +01:00
|
|
|
]
|
2023-01-09 10:53:30 +01:00
|
|
|
ignore_missing_imports = "True"
|
|
|
|
|
2022-08-03 14:10:32 +02:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "--durations=1 -s --cov=lnbits --cov-report=xml"
|
|
|
|
testpaths = [
|
|
|
|
"tests"
|
|
|
|
]
|
2023-01-20 11:43:16 +01:00
|
|
|
|
|
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
|
|
max-line-length = 300
|
|
|
|
disable = "all"
|
|
|
|
enable = [
|
|
|
|
"assignment-from-none",
|
|
|
|
"chained-comparison",
|
|
|
|
"consider-merging-isinstance",
|
|
|
|
"consider-using-dict-comprehension",
|
|
|
|
"consider-using-dict-items",
|
|
|
|
"consider-using-f-string",
|
|
|
|
"consider-using-in",
|
|
|
|
"dangerous-default-value",
|
|
|
|
"inconsistent-return-statements",
|
|
|
|
"lost-exception",
|
|
|
|
"pointless-string-statement",
|
|
|
|
"simplifiable-if-statement",
|
|
|
|
"super-init-not-called",
|
|
|
|
"superfluous-parens",
|
|
|
|
"unused-variable",
|
|
|
|
"use-list-literal",
|
|
|
|
"useless-else-on-loop",
|
|
|
|
"useless-object-inheritance",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.pylint.MASTER]
|
|
|
|
ignore-paths = [
|
|
|
|
"^lnbits/wallets/lnd_grpc_files/.*$",
|
|
|
|
]
|
|
|
|
fail-under = 10.0
|
|
|
|
jobs = 0
|