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
-1
View File
@@ -1,7 +1,6 @@
import json
import secrets
import pytest
import pytest_asyncio
from lnbits.core.crud import create_account, create_wallet
@@ -1,7 +1,6 @@
import secrets
import pytest
import pytest_asyncio
from lnbits.core.crud import get_wallet
from lnbits.extensions.bleskomat.crud import get_bleskomat_lnurl
@@ -10,8 +9,6 @@ from lnbits.extensions.bleskomat.helpers import (
query_to_signing_payload,
)
from lnbits.settings import get_wallet_class, settings
from tests.conftest import client
from tests.extensions.bleskomat.conftest import bleskomat, lnurl
from tests.helpers import credit_wallet, is_regtest
WALLET = get_wallet_class()
-1
View File
@@ -1,4 +1,3 @@
import pytest
import pytest_asyncio
from lnbits.core.crud import create_account, create_wallet
+10 -7
View File
@@ -1,12 +1,15 @@
import pytest
import pytest_asyncio
from loguru import logger
import pytest_asyncio # noqa: F401
from loguru import logger # noqa: F401
from lnbits.core.crud import get_wallet
from tests.conftest import adminkey_headers_from, client, invoice
from tests.extensions.invoices.conftest import accounting_invoice, invoices_wallet
from tests.helpers import credit_wallet
from tests.mocks import WALLET
from lnbits.core.crud import get_wallet # noqa: F401
from tests.conftest import adminkey_headers_from, client, invoice # noqa: F401
from tests.extensions.invoices.conftest import ( # noqa: F401
accounting_invoice,
invoices_wallet,
)
from tests.helpers import credit_wallet # noqa: F401
from tests.mocks import WALLET # noqa: F401
@pytest.mark.asyncio