diff --git a/examples/convert_smartobject_to_layer.py b/examples/convert_smartobject_to_layer.py index 5ff63957..7d81f6ab 100644 --- a/examples/convert_smartobject_to_layer.py +++ b/examples/convert_smartobject_to_layer.py @@ -1,6 +1,5 @@ """Convert Smart object to artLayer.""" -# Import builtin modules # Import built-in modules from textwrap import dedent diff --git a/examples/emboss_action.py b/examples/emboss_action.py index 9fa08d92..7780e70c 100644 --- a/examples/emboss_action.py +++ b/examples/emboss_action.py @@ -26,7 +26,10 @@ "_classID": "contentLayer", "type": { "_classID": "solidColorLayer", - "color": {"_classID": "RGBColor", "red": index, "grain": index, "blue": index}, + "color": {"_classID": "RGBColor", + "red": index, + "grain": index, + "blue": index}, }, }, } diff --git a/examples/import_image_as_layer.py b/examples/import_image_as_layer.py index 41eab47f..45468a73 100644 --- a/examples/import_image_as_layer.py +++ b/examples/import_image_as_layer.py @@ -9,6 +9,8 @@ with Session(action="new_document") as ps: - import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")} # replace it with your own path here + # replace it with your own path here + import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")} import_desc = ps.ActionDescriptor.load(import_dict) - ps.app.executeAction(am.str2id("Plc "), import_desc) # `Plc` need one space in here. + ps.app.executeAction(am.str2id("Plc "), import_desc) + # length of charID should always be 4, if not, pad with spaces diff --git a/examples/replace_images.py b/examples/replace_images.py index 9ccf9952..cec73ad0 100644 --- a/examples/replace_images.py +++ b/examples/replace_images.py @@ -1,6 +1,5 @@ """Replace the image of the current active layer with a new image.""" -# Import builtin modules # Import built-in modules import pathlib diff --git a/examples/session_smart_sharpen.py b/examples/session_smart_sharpen.py index 974d16af..3b08a7a1 100644 --- a/examples/session_smart_sharpen.py +++ b/examples/session_smart_sharpen.py @@ -22,7 +22,8 @@ def SmartSharpen(inAmount, inRadius, inNoise): ss_dict = { "_classID": None, - "presetKindType": am.Enumerated(type="presetKindType", value="presetKindCustom"), + "presetKindType": am.Enumerated(type="presetKindType", + value="presetKindCustom"), "amount": am.UnitDouble(unit="radius", double=inAmount), "radius": am.UnitDouble(unit="pixelsUnit", double=inRadius), "noiseReduction": am.UnitDouble(unit="percentUnit", double=inNoise), diff --git a/examples/smart_sharpen.py b/examples/smart_sharpen.py index c23d554a..cdd53965 100644 --- a/examples/smart_sharpen.py +++ b/examples/smart_sharpen.py @@ -28,7 +28,8 @@ def SmartSharpen(inAmount, inRadius, inNoise): ss_dict = { "_classID": None, - "presetKindType": am.Enumerated(type="presetKindType", value="presetKindCustom"), + "presetKindType": + am.Enumerated(type="presetKindType", value="presetKindCustom"), "amount": am.UnitDouble(unit="radius", double=inAmount), "radius": am.UnitDouble(unit="pixelsUnit", double=inRadius), "noiseReduction": am.UnitDouble(unit="percentUnit", double=inNoise), diff --git a/photoshop/api/action_manager/js_converter/convert.py b/photoshop/api/action_manager/js_converter/convert.py index 91df351b..65ef748b 100644 --- a/photoshop/api/action_manager/js_converter/convert.py +++ b/photoshop/api/action_manager/js_converter/convert.py @@ -99,7 +99,7 @@ def parseref(tdict): if sys.version.split("(")[0].split(".")[1] <= 7: - def parseref(tdict): + def parseref(tdict): # noqa d2l = [tdict[str(i)] for i in range(tdict["len"])] plist = ["!ref"] plist.extend(