Merge branch 'master' of github.com:Ultimaker/Cura into CURA-7038

This commit is contained in:
Dimitriovski 2019-12-31 14:44:09 +01:00
commit daee57d31e
No known key found for this signature in database
GPG Key ID: 4E62757E2B0D304D
3 changed files with 22 additions and 20 deletions

View File

@ -7650,7 +7650,7 @@
"default_value": 50,
"minimum_value": "1",
"minimum_value_warning": "25",
"maximum_value": "100",
"maximum_value_warning": "100",
"settable_per_mesh": true
},
"small_feature_speed_factor_0":
@ -7663,7 +7663,7 @@
"value": "small_feature_speed_factor",
"minimum_value": "1",
"minimum_value_warning": "25",
"maximum_value": "100",
"maximum_value_warning": "100",
"settable_per_mesh": true
}
}

View File

@ -222,7 +222,6 @@ Item
ListView
{
id: contents
spacing: UM.Theme.getSize("default_lining").height
cacheBuffer: 1000000 // Set a large cache to effectively just cache every list item.
model: UM.SettingDefinitionsModel
@ -251,7 +250,7 @@ Item
id: delegate
width: scrollView.width
height: provider.properties.enabled === "True" ? UM.Theme.getSize("section").height : - contents.spacing
height: provider.properties.enabled === "True" ? UM.Theme.getSize("section").height + 2 * UM.Theme.getSize("default_lining").height : 0
Behavior on height { NumberAnimation { duration: 100 } }
opacity: provider.properties.enabled === "True" ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }

View File

@ -1,8 +1,9 @@
#!/usr/bin/env python
import os
import sys
import subprocess
from multiprocessing.dummy import Pool
from functools import partial
from subprocess import call
# A quick Python implementation of unix 'where' command.
def where(exe_name: str, search_path: str = os.getenv("PATH")) -> str:
@ -62,21 +63,23 @@ def main():
mods = ["cura"] + plugins + findModules("plugins/VersionUpgrade")
success_code = 0
for mod in mods:
print("------------- Checking module {mod}".format(**locals()))
if sys.platform == "win32":
result = subprocess.run([mypy_module, "-p", mod, "--ignore-missing-imports"])
else:
result = subprocess.run([sys.executable, mypy_module, "-p", mod, "--ignore-missing-imports"])
if result.returncode != 0:
print("\nModule {mod} failed checking. :(".format(**locals()))
success_code = 1
if success_code:
print("\n\nSome modules failed checking!")
pool = Pool(2) # Run two commands at once
if sys.platform == "win32":
commands = ["%s -p %s --ignore-missing-imports" % (mypy_module, mod) for mod in mods]
else:
print("\n\nDone checking. All is good.")
commands = ["%s %s -p %s --ignore-missing-imports" % (sys.executable, mypy_module, mod) for mod in mods]
for i, returncode in enumerate(pool.imap(partial(call, shell=True), commands)):
if returncode != 0:
print("\nCommand %s failed checking. :(" % commands[i])
success_code = 1
if success_code:
print("MYPY check was compleded, but did not pass")
else:
print("MYPY check was compleded and passed with flying colors")
return success_code
if __name__ == "__main__":
sys.exit(main())
sys.exit(main())