pylint warning for PathDeburr

This commit is contained in:
Markus Lampert
2019-06-29 22:31:04 -07:00
parent 8896a84372
commit 2a97d558e8
3 changed files with 7 additions and 7 deletions

View File

@@ -83,8 +83,8 @@ class ObjectDeburr(PathEngraveBase.ObjectOp):
(depth, offset) = toolDepthAndOffset(obj.Width.Value, obj.ExtraDepth.Value, self.tool)
PathLog.track(obj.Label, depth, offset)
self.basewires = []
self.adjusted_basewires = []
self.basewires = [] # pylint: disable=attribute-defined-outside-init
self.adjusted_basewires = [] # pylint: disable=attribute-defined-outside-init
wires = []
for base, subs in obj.Base:
edges = []
@@ -97,7 +97,7 @@ class ObjectDeburr(PathEngraveBase.ObjectOp):
basewires.extend(sub.Wires)
else:
basewires.append(Part.Wire(sub.Edges))
self.edges = edges
self.edges = edges # pylint: disable=attribute-defined-outside-init
for edgelist in Part.sortEdges(edges):
basewires.append(Part.Wire(edgelist))
@@ -118,7 +118,7 @@ class ObjectDeburr(PathEngraveBase.ObjectOp):
zValues.append(depth)
PathLog.track(obj.Label, depth, zValues)
self.wires = wires
self.wires = wires # pylint: disable=attribute-defined-outside-init
self.buildpathocc(obj, wires, zValues, True)
# the last command is a move to clearance, which is automatically added by PathOp

View File

@@ -55,8 +55,8 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage):
return FreeCADGui.PySideUic.loadUi(":/panels/PageOpDeburrEdit.ui")
def initPage(self, obj):
self.opImagePath = "{}Mod/Path/Images/Ops/{}".format(FreeCAD.getHomePath(), 'chamfer.svg')
self.opImage = QtGui.QPixmap(self.opImagePath)
self.opImagePath = "{}Mod/Path/Images/Ops/{}".format(FreeCAD.getHomePath(), 'chamfer.svg') # pylint: disable=attribute-defined-outside-init
self.opImage = QtGui.QPixmap(self.opImagePath) # pylint: disable=attribute-defined-outside-init
self.form.opImage.setPixmap(self.opImage)
iconMiter = QtGui.QIcon(':/icons/edge-join-miter-not.svg')
iconMiter.addFile(':/icons/edge-join-miter.svg', state=QtGui.QIcon.On)

View File

@@ -73,5 +73,5 @@ if [ -z "$(which pylint)" ]; then
fi
#pylint ${ARGS} PathScripts/ PathTests/
pylint ${ARGS} PathScripts/PathEngraveBase.py PathScripts/PathDressupDogbone.py
pylint ${ARGS} PathScripts/