pylint warning for PathDeburr
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user