Merge pull request #1336 from lnbits/mypy_fix_ignore_missing_imports

fix: mypy - constrain `ignore_missing_imports = "True"`
This commit is contained in:
calle 2023-01-11 12:12:53 +01:00 committed by GitHub
commit b8dd74299d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 92 additions and 77 deletions

View file

@ -86,7 +86,6 @@ lnbits = "lnbits.server:main"
profile = "black"
[tool.mypy]
ignore_missing_imports = "True"
files = "lnbits"
exclude = """(?x)(
^lnbits/extensions/bleskomat.
@ -94,6 +93,27 @@ exclude = """(?x)(
| ^lnbits/wallets/lnd_grpc_files.
)"""
[[tool.mypy.overrides]]
module = [
"embit.*",
"secp256k1.*",
"uvicorn.*",
"sqlalchemy.*",
"sqlalchemy_aio.*",
"websocket.*",
"websockets.*",
"pyqrcode.*",
"cashu.*",
"shortuuid.*",
"grpc.*",
"lnurl.*",
"bitstring.*",
"ecdsa.*",
"psycopg2.*",
"pyngrok.*"
]
ignore_missing_imports = "True"
[tool.pytest.ini_options]
addopts = "--durations=1 -s --cov=lnbits --cov-report=xml"
testpaths = [