Cleanup: autopep8
This commit is contained in:
parent
802bc8e233
commit
e3724d29ff
@ -411,7 +411,7 @@ def main():
|
||||
# read blend header from blend file
|
||||
log.info("2: read file:")
|
||||
|
||||
if not dir in sys.path:
|
||||
if dir not in sys.path:
|
||||
sys.path.append(dir)
|
||||
import BlendFileReader
|
||||
|
||||
|
@ -43,7 +43,7 @@ with offscreen.bind():
|
||||
offscreen.free()
|
||||
|
||||
|
||||
if not IMAGE_NAME in bpy.data.images:
|
||||
if IMAGE_NAME not in bpy.data.images:
|
||||
bpy.data.images.new(IMAGE_NAME, WIDTH, HEIGHT)
|
||||
image = bpy.data.images[IMAGE_NAME]
|
||||
image.scale(WIDTH, HEIGHT)
|
||||
|
@ -668,7 +668,7 @@ class SpellChecker:
|
||||
|
||||
# Acronyms
|
||||
"aa", "msaa",
|
||||
"acescg", # ACEScg color space.
|
||||
"acescg", # ACEScg color space.
|
||||
"ao",
|
||||
"aov", "aovs",
|
||||
"api",
|
||||
|
@ -391,7 +391,7 @@ def generate(context, space_type, *, use_fallback_keys=True, use_reset=True):
|
||||
if key is not None:
|
||||
kmi_args["type"] = key
|
||||
kmi_tuple = dict_as_tuple(kmi_args)
|
||||
if not kmi_tuple in kmi_unique_args:
|
||||
if kmi_tuple not in kmi_unique_args:
|
||||
kmi = keymap.keymap_items.new(idname="wm.tool_set_by_id", value='PRESS', **kmi_args)
|
||||
kmi.properties.name = item.idname
|
||||
kmi_unique_args.add(kmi_tuple)
|
||||
|
@ -63,7 +63,7 @@ def setup():
|
||||
collection = bpy.data.collections.new("Reflection")
|
||||
collection.objects.link(plane)
|
||||
# Add all lights to light the plane
|
||||
if invert == False:
|
||||
if not invert:
|
||||
for light in bpy.data.objects:
|
||||
if light.type == 'LIGHT':
|
||||
collection.objects.link(light)
|
||||
|
@ -13,5 +13,5 @@ geo_node_test = BlendFileTest("test_object", "expected_object", threshold=1e-4)
|
||||
result = geo_node_test.run_test()
|
||||
|
||||
# Telling `ctest` about the failed test by raising Exception.
|
||||
if result == False:
|
||||
if not result:
|
||||
raise Exception("Failed {}".format(geo_node_test.test_name))
|
||||
|
Loading…
Reference in New Issue
Block a user