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 ed6bb7e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion examples/emboss_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
"_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
3 changes: 2 additions & 1 deletion examples/import_image_as_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


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.
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

0 comments on commit ed6bb7e

Please sign in to comment.