Skip to content

Commit c004a59

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 c004a59

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

examples/emboss_action.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
"_classID": "contentLayer",
2727
"type": {
2828
"_classID": "solidColorLayer",
29-
"color": {"_classID": "RGBColor", "red": index, "grain": index, "blue": index},
29+
"color": {
30+
"_classID": "RGBColor",
31+
"red": index,
32+
"grain": index,
33+
"blue": index
34+
},
3035
},
3136
},
3237
}

examples/import_image_as_layer.py

+4-2
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

+2-1
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

+2-1
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),

0 commit comments

Comments
 (0)