2022-07-08 08:22:35 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "lnbits"
|
2023-05-22 11:09:45 +00:00
|
|
|
version = "0.10.8"
|
2023-01-10 11:25:11 +00:00
|
|
|
description = "LNbits, free and open-source Lightning wallet and accounts system."
|
2023-01-12 14:47:42 +00:00
|
|
|
authors = ["Alan Bits <alan@lnbits.com>"]
|
2022-07-08 08:22:35 +00:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-04-21 12:37:26 +00:00
|
|
|
python = "^3.10 | ^3.9"
|
2022-07-08 08:22:35 +00:00
|
|
|
bech32 = "1.2.0"
|
|
|
|
bitstring = "3.1.9"
|
2022-11-30 15:24:13 +00:00
|
|
|
click = "8.0.4"
|
|
|
|
ecdsa = "0.18.0"
|
2022-07-08 08:22:35 +00:00
|
|
|
embit = "0.4.9"
|
2022-12-01 11:28:28 +00:00
|
|
|
fastapi = "0.83.0"
|
2022-08-03 12:10:32 +00:00
|
|
|
httpx = "0.23.0"
|
2022-09-29 18:42:13 +00:00
|
|
|
jinja2 = "3.0.1"
|
2022-07-08 08:22:35 +00:00
|
|
|
lnurl = "0.3.6"
|
2022-09-29 18:42:13 +00:00
|
|
|
psycopg2-binary = "2.9.1"
|
2023-01-15 10:24:11 +00:00
|
|
|
pydantic = "1.10.4"
|
2022-07-08 08:22:35 +00:00
|
|
|
pyqrcode = "1.2.1"
|
2023-03-10 10:32:02 +00:00
|
|
|
shortuuid = "1.0.11"
|
2022-11-30 15:24:13 +00:00
|
|
|
sqlalchemy = "1.3.24"
|
2022-08-03 12:10:32 +00:00
|
|
|
sqlalchemy-aio = "0.17.0"
|
2022-07-08 08:22:35 +00:00
|
|
|
sse-starlette = "0.6.2"
|
2023-01-26 12:51:12 +00:00
|
|
|
typing-extensions = "4.4.0"
|
2022-11-30 15:24:13 +00:00
|
|
|
uvicorn = "0.18.3"
|
2022-07-08 08:22:35 +00:00
|
|
|
uvloop = "0.16.0"
|
|
|
|
websockets = "10.0"
|
2022-11-30 15:24:13 +00:00
|
|
|
loguru = "0.6.0"
|
2023-01-26 13:24:17 +00:00
|
|
|
grpcio = "1.51.1"
|
|
|
|
protobuf = "4.21.12"
|
2023-01-26 12:51:12 +00:00
|
|
|
Cerberus = "1.3.4"
|
|
|
|
async-timeout = "4.0.2"
|
2022-09-30 11:55:46 +00:00
|
|
|
pyln-client = "0.11.1"
|
2023-01-30 08:29:44 +00:00
|
|
|
cashu = "0.9.0"
|
2022-11-30 15:24:13 +00:00
|
|
|
|
2023-04-17 07:44:08 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
flake8 = "^6.0.0"
|
2023-05-09 08:41:40 +00:00
|
|
|
isort = "^5.12.0"
|
2022-08-03 12:10:32 +00:00
|
|
|
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-04-17 07:44:08 +00:00
|
|
|
pylint = "^2.17.2"
|
2023-05-09 08:41:40 +00:00
|
|
|
pre-commit = "^3.2.2"
|
|
|
|
types-mock = "^5.0.0.6"
|
2022-07-08 08:22:35 +00:00
|
|
|
|
|
|
|
[build-system]
|
2023-04-21 12:51:46 +00:00
|
|
|
requires = ["poetry-core>=1.0.0"]
|
2022-07-08 08:22:35 +00:00
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
lnbits = "lnbits.server:main"
|
2022-08-03 12:10:32 +00:00
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
|
2023-01-23 09:29:17 +00:00
|
|
|
[tool.pyright]
|
|
|
|
include = [
|
|
|
|
"lnbits"
|
|
|
|
]
|
|
|
|
exclude = [
|
|
|
|
"lnbits/wallets/lnd_grpc_files",
|
2023-03-02 11:03:58 +00:00
|
|
|
"lnbits/extensions",
|
2023-01-23 09:29:17 +00:00
|
|
|
]
|
|
|
|
|
2022-08-03 12:10:32 +00:00
|
|
|
[tool.mypy]
|
|
|
|
files = "lnbits"
|
2023-03-17 17:05:43 +00:00
|
|
|
exclude = [
|
|
|
|
"^lnbits/wallets/lnd_grpc_files",
|
|
|
|
"^lnbits/extensions",
|
|
|
|
]
|
2022-08-03 12:10:32 +00:00
|
|
|
|
2023-01-09 09:53:30 +00:00
|
|
|
[[tool.mypy.overrides]]
|
2023-01-09 15:35:19 +00:00
|
|
|
module = [
|
|
|
|
"embit.*",
|
2023-01-09 15:56:49 +00:00
|
|
|
"secp256k1.*",
|
|
|
|
"uvicorn.*",
|
|
|
|
"sqlalchemy.*",
|
|
|
|
"sqlalchemy_aio.*",
|
|
|
|
"websocket.*",
|
|
|
|
"websockets.*",
|
|
|
|
"pyqrcode.*",
|
|
|
|
"shortuuid.*",
|
|
|
|
"grpc.*",
|
|
|
|
"lnurl.*",
|
|
|
|
"bitstring.*",
|
|
|
|
"ecdsa.*",
|
|
|
|
"psycopg2.*",
|
2023-01-11 11:40:02 +00:00
|
|
|
"pyngrok.*",
|
2023-01-09 15:35:19 +00:00
|
|
|
]
|
2023-01-09 09:53:30 +00:00
|
|
|
ignore_missing_imports = "True"
|
|
|
|
|
2022-08-03 12:10:32 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "--durations=1 -s --cov=lnbits --cov-report=xml"
|
|
|
|
testpaths = [
|
|
|
|
"tests"
|
|
|
|
]
|
2023-01-20 10:43:16 +00: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 = [
|
2023-04-13 05:57:14 +00:00
|
|
|
"^lnbits/extensions/.*$",
|
2023-01-20 10:43:16 +00:00
|
|
|
"^lnbits/wallets/lnd_grpc_files/.*$",
|
|
|
|
]
|
|
|
|
fail-under = 10.0
|
|
|
|
jobs = 0
|