From 884fca0cc2e5f77e35fd99de74f979a560f3bd61 Mon Sep 17 00:00:00 2001 From: jalapenopuzzle <8386278+jalapenopuzzle@users.noreply.github.com> Date: Sat, 29 Mar 2025 10:53:45 +1100 Subject: [PATCH] CAM: snapmaker fix lint on formatted strings --- src/Mod/CAM/Path/Post/scripts/snapmaker_post.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/CAM/Path/Post/scripts/snapmaker_post.py b/src/Mod/CAM/Path/Post/scripts/snapmaker_post.py index a9e206fca7..added9858a 100644 --- a/src/Mod/CAM/Path/Post/scripts/snapmaker_post.py +++ b/src/Mod/CAM/Path/Post/scripts/snapmaker_post.py @@ -171,7 +171,7 @@ class Snapmaker(Path.Post.Processor.PostProcessor): "P", "O", ] - self.values["PREAMBLE"] = f"""G90\nG17""" + self.values["PREAMBLE"] = """G90\nG17""" self.values["PRE_OPERATION"] = """""" self.values["POST_OPERATION"] = """""" self.values["POSTAMBLE"] = """M400\nM5""" @@ -293,14 +293,14 @@ class Snapmaker(Path.Post.Processor.PostProcessor): "--machine", default=None, choices=self.values["MACHINES"].keys(), - help=f"Snapmaker machine", + help=f"Snapmaker machine. Choose from [{self.values['MACHINES'].keys()}].", ) group.add_argument( "--toolhead", default=None, choices=self.values["TOOLHEADS"].keys(), - help=f"Snapmaker toolhead", + help=f"Snapmaker toolhead. Choose from [{self.values['TOOLHEADS'].keys()}].", ) group.add_argument( @@ -375,7 +375,7 @@ class Snapmaker(Path.Post.Processor.PostProcessor): self.values["SPINDLE_PERCENT"] = True if args.spindle_percent is False: FreeCAD.Console.PrintWarning( - f"Toolhead does not handle RPM spindle speed, using percents instead.\n" + "Toolhead does not handle RPM spindle speed, using percents instead.\n" ) else: self.values["SPINDLE_PERCENT"] = args.spindle_percent