Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09680e9

Browse filesBrowse 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 <zhang050525@qq.com>
1 parent 0089f9d commit 09680e9
Copy full SHA for 09680e9

File tree

Expand file treeCollapse file tree

5 files changed

+11
-6
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+11
-6
lines changed

‎examples/emboss_action.py

Copy file name to clipboardExpand all lines: examples/emboss_action.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"_classID": "contentLayer",
2727
"type": {
2828
"_classID": "solidColorLayer",
29-
"color": {"_classID": "RGBColor", "red": index, "grain": index, "blue": index},
29+
"color": {"_classID": "RGBColor", "red": index,
30+
"grain": index, "blue": index},
3031
},
3132
},
3233
}

‎examples/import_image_as_layer.py

Copy file name to clipboardExpand all lines: examples/import_image_as_layer.py
+4-2Lines 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

Copy file name to clipboardExpand all lines: examples/session_smart_sharpen.py
+2-1Lines 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

Copy file name to clipboardExpand all lines: examples/smart_sharpen.py
+2-1Lines 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

Copy file name to clipboardExpand all lines: photoshop/api/action_manager/js_converter/convert.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.