mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-12 19:03:11 +01:00
feat: use __all__ to export deps from __init__.py
(#2630)
* feat: export wallets * remove linting exception
This commit is contained in:
parent
40ffa7dea0
commit
74d4ddd312
4 changed files with 28 additions and 4 deletions
|
@ -38,3 +38,6 @@ def init_core_routers(app: FastAPI):
|
|||
app.include_router(tinyurl_router)
|
||||
app.include_router(webpush_router)
|
||||
app.include_router(users_router)
|
||||
|
||||
|
||||
__all__ = ["core_app", "core_app_extra", "db"]
|
||||
|
|
|
@ -50,3 +50,26 @@ fake_wallet = FakeWallet()
|
|||
|
||||
# initialize as fake wallet
|
||||
funding_source: Wallet = fake_wallet
|
||||
|
||||
|
||||
__all__ = [
|
||||
"AlbyWallet",
|
||||
"BlinkWallet",
|
||||
"BreezSdkWallet",
|
||||
"ClicheWallet",
|
||||
"CoreLightningWallet",
|
||||
"CLightningWallet",
|
||||
"CoreLightningRestWallet",
|
||||
"EclairWallet",
|
||||
"FakeWallet",
|
||||
"LNbitsWallet",
|
||||
"LndWallet",
|
||||
"LndRestWallet",
|
||||
"LNPayWallet",
|
||||
"LnTipsWallet",
|
||||
"OpenNodeWallet",
|
||||
"PhoenixdWallet",
|
||||
"SparkWallet",
|
||||
"VoidWallet",
|
||||
"ZBDWallet",
|
||||
]
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
from .macaroon import load_macaroon
|
||||
|
||||
__all__ = ["load_macaroon"]
|
||||
|
|
|
@ -202,10 +202,6 @@ classmethod-decorators = [
|
|||
"root_validator",
|
||||
]
|
||||
|
||||
# Ignore unused imports in __init__.py files.
|
||||
[tool.ruff.lint.extend-per-file-ignores]
|
||||
"__init__.py" = ["F401", "F403"]
|
||||
|
||||
[tool.ruff.lint.mccabe]
|
||||
# TODO: Decrease this to 10.
|
||||
max-complexity = 16
|
||||
|
|
Loading…
Add table
Reference in a new issue