Skip to content

Commit 3ee7955

Browse files
authored
CAM: Linting Path/Post/Processor.py
Added various docstrings + fixed a typo
1 parent e698c73 commit 3ee7955

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Mod/CAM/Path/Post/Processor.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,10 @@ def _buildPostList(self):
130130
exportObjectsWith() for final posting."""
131131

132132
def __fixtureSetup(order, fixture, job):
133-
"""Convert a Fixure setting to _TempObject instance with a G0 move to a
133+
"""Convert a Fixture setting to _TempObject instance with a G0 move to a
134134
safe height every time the fixture coordinate system change. Skip
135135
the move for first fixture, to avoid moving before tool and tool
136-
height compensation is enabled.
137-
138-
"""
136+
height compensation is enabled."""
139137

140138
fobj = _TempObject()
141139
c1 = Path.Command(fixture)
@@ -292,7 +290,7 @@ def __init__(self, job, script_path, *args, **kwargs):
292290
self.load_script()
293291

294292
def load_script(self):
295-
# Dynamically load the script as a module
293+
"""Dynamically load the script as a module."""
296294
try:
297295
spec = importlib.util.spec_from_file_location("script_module", self.script_path)
298296
self.script_module = importlib.util.module_from_spec(spec)
@@ -309,7 +307,7 @@ def load_script(self):
309307
self._tooltipargs = getattr(self.script_module, "TOOLTIP_ARGS", [])
310308

311309
def export(self):
312-
# Dynamically reload the module for the export to ensure up-to-date usage
310+
"""Dynamically reload the module for the export to ensure up-to-date usage."""
313311

314312
postables = self._buildPostList()
315313
Path.Log.debug(f"postables count: {len(postables)}")

0 commit comments

Comments
 (0)