Skip to content

Fix release error due to later loading of extruder settings #122

Fix release error due to later loading of extruder settings

Fix release error due to later loading of extruder settings #122

GitHub Actions / Black failed Apr 27, 2024 in 0s

2 errors

Black found 2 errors

Annotations

Check failure on line 26 in /home/runner/work/continuousprint/continuousprint/continuousprint/thirdparty/spoolmanager.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/continuousprint/continuousprint/continuousprint/thirdparty/spoolmanager.py#L13-L26

 
     def get_materials(self):
         try:
             materials = self._impl.api_getSelectedSpoolInformations()
             materials = [
-                f"{m['material']}_{m['colorName']}_{m['color']}"
-                if m is not None
-                else None
+                (
+                    f"{m['material']}_{m['colorName']}_{m['color']}"
+                    if m is not None
+                    else None
+                )
                 for m in materials
             ]
             return materials
         except Exception as e:
             self._logger.warning(

Check failure on line 501 in /home/runner/work/continuousprint/continuousprint/continuousprint/storage/queries.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/continuousprint/continuousprint/continuousprint/storage/queries.py#L488-L501

         .join_from(EventHook, Preprocessor, JOIN.LEFT_OUTER)
     ):
         events[e.name].append(
             dict(
                 script=e.script.name,
-                preprocessor=e.preprocessor.name
-                if e.preprocessor is not None
-                else None,
+                preprocessor=(
+                    e.preprocessor.name if e.preprocessor is not None else None
+                ),
             )
         )
 
     return dict(scripts=scripts, events=events, preprocessors=preprocessors)