ignore list for modules not to warn about
This commit is contained in:
parent
9a7bb8be00
commit
b76d947913
1 changed files with 11 additions and 4 deletions
|
|
@ -32,6 +32,12 @@ from circup.logging import logger
|
|||
from circup.module import Module
|
||||
from circup.bundle import Bundle
|
||||
|
||||
WARNING_IGNORE_MODULES = (
|
||||
"typing-extensions",
|
||||
"pyasn1",
|
||||
"circuitpython-typing",
|
||||
)
|
||||
|
||||
|
||||
def clean_library_name(assumed_library_name):
|
||||
"""
|
||||
|
|
@ -408,6 +414,7 @@ def get_dependencies(*requested_libraries, mod_names, to_install=()):
|
|||
mod_names[canonical_lib_name] # pylint: disable=pointless-statement
|
||||
_requested_libraries.append(canonical_lib_name)
|
||||
except KeyError:
|
||||
if canonical_lib_name not in WARNING_IGNORE_MODULES:
|
||||
click.secho(
|
||||
f"WARNING:\n\t{canonical_lib_name} is not a known CircuitPython library.",
|
||||
fg="yellow",
|
||||
|
|
|
|||
Loading…
Reference in a new issue