fix flake8 F401+F403 (module imported but unused + unable to detect undefined names)

This commit is contained in:
Pavol Rusnak
2023-01-30 11:46:45 +00:00
parent 967ce06ca5
commit a49a654137
65 changed files with 102 additions and 160 deletions
+3 -3
View File
@@ -24,10 +24,10 @@ def livestream_renderer():
return template_renderer(["lnbits/extensions/livestream/templates"])
from .lnurl import * # noqa
from .lnurl import * # noqa: F401,F403
from .tasks import wait_for_paid_invoices
from .views import * # noqa
from .views_api import * # noqa
from .views import * # noqa: F401,F403
from .views_api import * # noqa: F401,F403
def livestream_start():
-1
View File
@@ -2,7 +2,6 @@ import asyncio
from loguru import logger
from lnbits.core import db as core_db
from lnbits.core.models import Payment
from lnbits.core.services import create_invoice, pay_invoice
from lnbits.helpers import get_current_extension_name