Skip to content

Commit

Permalink
style(examples): please our little puppy: hound
Browse files Browse the repository at this point in the history
It seems that hound still think a line should only have 80 chars though you set it to 120.

Signed-off-by: TsXor <[email protected]>
  • Loading branch information
TsXor committed Sep 7, 2022
1 parent 0089f9d commit 8fb9d18
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion examples/convert_smartobject_to_layer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Convert Smart object to artLayer."""

# Import builtin modules
# Import built-in modules
from textwrap import dedent

Expand Down
5 changes: 4 additions & 1 deletion examples/emboss_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
},
}
Expand Down
6 changes: 4 additions & 2 deletions examples/import_image_as_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion examples/replace_images.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion examples/session_smart_sharpen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 2 additions & 1 deletion examples/smart_sharpen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion photoshop/api/action_manager/js_converter/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8fb9d18

Please sign in to comment.