mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Mypy: do not stop after finding issues in a module
This commit is contained in:
parent
6ff59bf5ab
commit
5efc0e7f27
1 changed files with 80 additions and 80 deletions
|
@ -61,7 +61,7 @@ def main():
|
||||||
plugins.sort()
|
plugins.sort()
|
||||||
|
|
||||||
mods = ["cura"] + plugins + findModules("plugins/VersionUpgrade")
|
mods = ["cura"] + plugins + findModules("plugins/VersionUpgrade")
|
||||||
|
result = 0
|
||||||
for mod in mods:
|
for mod in mods:
|
||||||
print("------------- Checking module {mod}".format(**locals()))
|
print("------------- Checking module {mod}".format(**locals()))
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
@ -70,10 +70,10 @@ def main():
|
||||||
result = subprocess.run([sys.executable, mypy_module, "-p", mod, "--ignore-missing-imports"])
|
result = subprocess.run([sys.executable, mypy_module, "-p", mod, "--ignore-missing-imports"])
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print("\nModule {mod} failed checking. :(".format(**locals()))
|
print("\nModule {mod} failed checking. :(".format(**locals()))
|
||||||
return 1
|
result = 1
|
||||||
else:
|
else:
|
||||||
print("\n\nDone checking. All is good.")
|
print("\n\nDone checking. All is good.")
|
||||||
return 0
|
return result
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue