Merge pull request #1336 from lnbits/mypy_fix_ignore_missing_imports
fix: mypy - constrain `ignore_missing_imports = "True"`
This commit is contained in:
+21
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user