Skip to content

Commit 97d51a8

Browse files
committed
style(examples): please our little puppy: hound
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]>
1 parent 0089f9d commit 97d51a8

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

examples/emboss_action.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"_classID": "contentLayer",
2727
"type": {
2828
"_classID": "solidColorLayer",
29-
"color": {"_classID": "RGBColor", "red": index, "grain": index, "blue": index},
29+
"color": {"_classID": "RGBColor",
30+
"red": index,
31+
"grain": index,
32+
"blue": index},
3033
},
3134
},
3235
}

examples/import_image_as_layer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010

1111
with Session(action="new_document") as ps:
12-
import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")} # replace it with your own path here
12+
# replace it with your own path here
13+
import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")}
1314
import_desc = ps.ActionDescriptor.load(import_dict)
14-
ps.app.executeAction(am.str2id("Plc "), import_desc) # `Plc` need one space in here.
15+
ps.app.executeAction(am.str2id("Plc "), import_desc)
16+
# length of charID should always be 4, if not, pad with spaces

examples/session_smart_sharpen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
def SmartSharpen(inAmount, inRadius, inNoise):
2323
ss_dict = {
2424
"_classID": None,
25-
"presetKindType": am.Enumerated(type="presetKindType", value="presetKindCustom"),
25+
"presetKindType": am.Enumerated(type="presetKindType",
26+
value="presetKindCustom"),
2627
"amount": am.UnitDouble(unit="radius", double=inAmount),
2728
"radius": am.UnitDouble(unit="pixelsUnit", double=inRadius),
2829
"noiseReduction": am.UnitDouble(unit="percentUnit", double=inNoise),

examples/smart_sharpen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
def SmartSharpen(inAmount, inRadius, inNoise):
2929
ss_dict = {
3030
"_classID": None,
31-
"presetKindType": am.Enumerated(type="presetKindType", value="presetKindCustom"),
31+
"presetKindType":
32+
am.Enumerated(type="presetKindType", value="presetKindCustom"),
3233
"amount": am.UnitDouble(unit="radius", double=inAmount),
3334
"radius": am.UnitDouble(unit="pixelsUnit", double=inRadius),
3435
"noiseReduction": am.UnitDouble(unit="percentUnit", double=inNoise),

photoshop/api/action_manager/js_converter/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def parseref(tdict):
9999

100100
if sys.version.split("(")[0].split(".")[1] <= 7:
101101

102-
def parseref(tdict):
102+
def parseref(tdict): # noqa
103103
d2l = [tdict[str(i)] for i in range(tdict["len"])]
104104
plist = ["!ref"]
105105
plist.extend(

0 commit comments

Comments
 (0)