mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 02:48:59 +08:00
Ignore missing imports
We don't want to be type checking inside those files. Contributes to issue CURA-5330.
This commit is contained in:
parent
51462b20c3
commit
adafea73cc
@ -44,7 +44,7 @@ def main():
|
||||
|
||||
for mod in mods:
|
||||
print("------------- Checking module {mod}".format(**locals()))
|
||||
result = subprocess.run([sys.executable, mypyModule, "-p", mod])
|
||||
result = subprocess.run([sys.executable, mypyModule, "-p", mod, "--ignore-missing-imports"])
|
||||
if result.returncode != 0:
|
||||
print("\nModule {mod} failed checking. :(".format(**locals()))
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user