Skip to content

Commit

Permalink
Fixing linting results
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjon711 committed Dec 8, 2024
1 parent b041048 commit 4640dd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions extras/AFC_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def handle_connect(self):
and assigns it to the instance variable `self.AFC`.
"""
self.AFC = self.printer.lookup_object('AFC')
self.AFC.gcode.register_command('PREP', self.PREP, desc=None)

self.AFC.gcode.register_command('PREP', self.PREP, desc=None)

Check failure on line 33 in extras/AFC_prep.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (W291)

extras/AFC_prep.py:33:70: W291 Trailing whitespace

def _rename_resume(self):
"""
Expand Down Expand Up @@ -71,7 +70,7 @@ def PREP(self, gcmd):
self.AFC.extruders={}

temp=[]

self.AFC.tool_cmds={}
for PO in self.printer.objects:
if 'AFC_stepper' in PO and 'tmc' not in PO:
Expand Down
2 changes: 1 addition & 1 deletion extras/AFC_spool.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def cmd_SET_SPOOLID(self, gcmd):
return
SpoolID = gcmd.get('SPOOL_ID', '')
CUR_LANE = self.printer.lookup_object('AFC_stepper ' + lane)
self.set_spoolID(CURLANE, SpoolID)
self.set_spoolID(CUR_LANE, SpoolID)

def set_spoolID(self, CUR_LANE, SpoolID):
if self.AFC.spoolman_ip !=None:
Expand Down
2 changes: 1 addition & 1 deletion extras/AFC_stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def prep_callback(self, eventtime, state):
else:
self.status = None
self.AFC.afc_led(self.AFC.led_not_ready, led)

def do_enable(self, enable):
self.sync_print_time()
stepper_enable = self.printer.lookup_object('stepper_enable')
Expand Down

0 comments on commit 4640dd5

Please sign in to comment.