[Bf-blender-cvs] [38d8b088e76] master: Cleanup: run autopep8 on release/scripts/templates_py

Campbell Barton noreply at git.blender.org
Wed Apr 20 07:13:01 CEST 2022


Commit: 38d8b088e76bfa0058b6e1ba4e56771695e8bf85
Author: Campbell Barton
Date:   Wed Apr 20 15:11:22 2022 +1000
Branches: master
https://developer.blender.org/rB38d8b088e76bfa0058b6e1ba4e56771695e8bf85

Cleanup: run autopep8 on release/scripts/templates_py

===================================================================

M	release/scripts/templates_py/operator_file_export.py
M	release/scripts/templates_py/operator_file_import.py
M	release/scripts/templates_py/operator_mesh_add.py
M	release/scripts/templates_py/operator_mesh_uv.py
M	release/scripts/templates_py/operator_modal.py
M	release/scripts/templates_py/operator_modal_draw.py
M	release/scripts/templates_py/operator_modal_timer.py
M	release/scripts/templates_py/operator_modal_view3d.py
M	release/scripts/templates_py/operator_modal_view3d_raycast.py
M	release/scripts/templates_py/operator_node.py
M	release/scripts/templates_py/operator_simple.py
M	release/scripts/templates_py/ui_tool_simple.py

===================================================================

diff --git a/release/scripts/templates_py/operator_file_export.py b/release/scripts/templates_py/operator_file_export.py
index b4d0dc8b698..f1779593051 100644
--- a/release/scripts/templates_py/operator_file_export.py
+++ b/release/scripts/templates_py/operator_file_export.py
@@ -57,7 +57,8 @@ class ExportSomeData(Operator, ExportHelper):
 def menu_func_export(self, context):
     self.layout.operator(ExportSomeData.bl_idname, text="Text Export Operator")
 
-# Register and add to the "file selector" menu (required to use F3 search "Text Export Operator" for quick access)
+
+# Register and add to the "file selector" menu (required to use F3 search "Text Export Operator" for quick access).
 def register():
     bpy.utils.register_class(ExportSomeData)
     bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
diff --git a/release/scripts/templates_py/operator_file_import.py b/release/scripts/templates_py/operator_file_import.py
index 83496fbe17b..d6f4780961a 100644
--- a/release/scripts/templates_py/operator_file_import.py
+++ b/release/scripts/templates_py/operator_file_import.py
@@ -56,11 +56,12 @@ class ImportSomeData(Operator, ImportHelper):
         return read_some_data(context, self.filepath, self.use_setting)
 
 
-# Only needed if you want to add into a dynamic menu
+# Only needed if you want to add into a dynamic menu.
 def menu_func_import(self, context):
     self.layout.operator(ImportSomeData.bl_idname, text="Text Import Operator")
 
-# Register and add to the "file selector" menu (required to use F3 search "Text Import Operator" for quick access)
+
+# Register and add to the "file selector" menu (required to use F3 search "Text Import Operator" for quick access).
 def register():
     bpy.utils.register_class(ImportSomeData)
     bpy.types.TOPBAR_MT_file_import.append(menu_func_import)
diff --git a/release/scripts/templates_py/operator_mesh_add.py b/release/scripts/templates_py/operator_mesh_add.py
index 5a6bed92c93..b4ee16ecdc7 100644
--- a/release/scripts/templates_py/operator_mesh_add.py
+++ b/release/scripts/templates_py/operator_mesh_add.py
@@ -97,7 +97,8 @@ class AddBox(bpy.types.Operator, AddObjectHelper):
 def menu_func(self, context):
     self.layout.operator(AddBox.bl_idname, icon='MESH_CUBE')
 
-# Register and add to the "add mesh" menu (required to use F3 search "Add Box" for quick access)
+
+# Register and add to the "add mesh" menu (required to use F3 search "Add Box" for quick access).
 def register():
     bpy.utils.register_class(AddBox)
     bpy.types.VIEW3D_MT_mesh_add.append(menu_func)
diff --git a/release/scripts/templates_py/operator_mesh_uv.py b/release/scripts/templates_py/operator_mesh_uv.py
index 2d4f5b17ba8..e94de433d1c 100644
--- a/release/scripts/templates_py/operator_mesh_uv.py
+++ b/release/scripts/templates_py/operator_mesh_uv.py
@@ -33,10 +33,12 @@ class UvOperator(bpy.types.Operator):
         main(context)
         return {'FINISHED'}
 
+
 def menu_func(self, context):
-    self.layout.operator(UvOperator.bl_idname, text = "Simple UV Operator")
+    self.layout.operator(UvOperator.bl_idname, text="Simple UV Operator")
+
 
-# Register and add to the "UV" menu (required to also use F3 search "Simple UV Operator" for quick access)
+# Register and add to the "UV" menu (required to also use F3 search "Simple UV Operator" for quick access).
 def register():
     bpy.utils.register_class(UvOperator)
     bpy.types.IMAGE_MT_uvs.append(menu_func)
diff --git a/release/scripts/templates_py/operator_modal.py b/release/scripts/templates_py/operator_modal.py
index 41b01e22f78..c35e8826ec0 100644
--- a/release/scripts/templates_py/operator_modal.py
+++ b/release/scripts/templates_py/operator_modal.py
@@ -35,10 +35,12 @@ class ModalOperator(bpy.types.Operator):
             self.report({'WARNING'}, "No active object, could not finish")
             return {'CANCELLED'}
 
+
 def menu_func(self, context):
     self.layout.operator(ModalOperator.bl_idname, text=ModalOperator.bl_label)
 
-# Register and add to the "view" menu (required to also use F3 search "Simple Modal Operator" for quick access)
+
+# Register and add to the "view" menu (required to also use F3 search "Simple Modal Operator" for quick access).
 def register():
     bpy.utils.register_class(ModalOperator)
     bpy.types.VIEW3D_MT_object.append(menu_func)
diff --git a/release/scripts/templates_py/operator_modal_draw.py b/release/scripts/templates_py/operator_modal_draw.py
index a3f46586cf5..20e888ad5f3 100644
--- a/release/scripts/templates_py/operator_modal_draw.py
+++ b/release/scripts/templates_py/operator_modal_draw.py
@@ -65,10 +65,12 @@ class ModalDrawOperator(bpy.types.Operator):
             self.report({'WARNING'}, "View3D not found, cannot run operator")
             return {'CANCELLED'}
 
+
 def menu_func(self, context):
-    self.layout.operator(ModalDrawOperator.bl_idname, text = "Modal Draw Operator")
+    self.layout.operator(ModalDrawOperator.bl_idname, text="Modal Draw Operator")
+
 
-# Register and add to the "view" menu (required to also use F3 search "Modal Draw Operator" for quick access)
+# Register and add to the "view" menu (required to also use F3 search "Modal Draw Operator" for quick access).
 def register():
     bpy.utils.register_class(ModalDrawOperator)
     bpy.types.VIEW3D_MT_view.append(menu_func)
diff --git a/release/scripts/templates_py/operator_modal_timer.py b/release/scripts/templates_py/operator_modal_timer.py
index 19c003712ad..3e205010549 100644
--- a/release/scripts/templates_py/operator_modal_timer.py
+++ b/release/scripts/templates_py/operator_modal_timer.py
@@ -31,14 +31,17 @@ class ModalTimerOperator(bpy.types.Operator):
         wm = context.window_manager
         wm.event_timer_remove(self._timer)
 
+
 def menu_func(self, context):
     self.layout.operator(ModalTimerOperator.bl_idname, text=ModalTimerOperator.bl_label)
 
+
 def register():
     bpy.utils.register_class(ModalTimerOperator)
     bpy.types.VIEW3D_MT_view.append(menu_func)
 
-# Register and add to the "view" menu (required to also use F3 search "Modal Timer Operator" for quick access)
+
+# Register and add to the "view" menu (required to also use F3 search "Modal Timer Operator" for quick access).
 def unregister():
     bpy.utils.unregister_class(ModalTimerOperator)
     bpy.types.VIEW3D_MT_view.remove(menu_func)
diff --git a/release/scripts/templates_py/operator_modal_view3d.py b/release/scripts/templates_py/operator_modal_view3d.py
index 5fd47731d0b..d0200bccc05 100644
--- a/release/scripts/templates_py/operator_modal_view3d.py
+++ b/release/scripts/templates_py/operator_modal_view3d.py
@@ -57,10 +57,12 @@ class ViewOperator(bpy.types.Operator):
             self.report({'WARNING'}, "Active space must be a View3d")
             return {'CANCELLED'}
 
+
 def menu_func(self, context):
-    self.layout.operator(ViewOperator.bl_idname, text = "Simple View Modal Operator")
+    self.layout.operator(ViewOperator.bl_idname, text="Simple View Modal Operator")
+
 
-# Register and add to the "view" menu (required to also use F3 search "Simple View Modal Operator" for quick access)
+# Register and add to the "view" menu (required to also use F3 search "Simple View Modal Operator" for quick access).
 def register():
     bpy.utils.register_class(ViewOperator)
     bpy.types.VIEW3D_MT_view.append(menu_func)
diff --git a/release/scripts/templates_py/operator_modal_view3d_raycast.py b/release/scripts/templates_py/operator_modal_view3d_raycast.py
index 022acc25e14..b2d8471d6b4 100644
--- a/release/scripts/templates_py/operator_modal_view3d_raycast.py
+++ b/release/scripts/templates_py/operator_modal_view3d_raycast.py
@@ -95,10 +95,12 @@ class ViewOperatorRayCast(bpy.types.Operator):
             self.report({'WARNING'}, "Active space must be a View3d")
             return {'CANCELLED'}
 
+
 def menu_func(self, context):
     self.layout.operator(ViewOperatorRayCast.bl_idname, text="Raycast View Modal Operator")
 
-# Register and add to the "view" menu (required to also use F3 search "Raycast View Modal Operator" for quick access)
+
+# Register and add to the "view" menu (required to also use F3 search "Raycast View Modal Operator" for quick access).
 def register():
     bpy.utils.register_class(ViewOperatorRayCast)
     bpy.types.VIEW3D_MT_view.append(menu_func)
diff --git a/release/scripts/templates_py/operator_node.py b/release/scripts/templates_py/operator_node.py
index b5ca491a0fe..83231a55c94 100644
--- a/release/scripts/templates_py/operator_node.py
+++ b/release/scripts/templates_py/operator_node.py
@@ -46,10 +46,12 @@ class NodeOperator(bpy.types.Operator):
         main(self, context)
         return {'FINISHED'}
 
+
 def menu_func(self, context):
     self.layout.operator(NodeOperator.bl_idname, text=NodeOperator.bl_label)
 
-# Register and add to the "Node" menu (required to also use F3 search "Simple Node Operator" for quick access)
+
+# Register and add to the "Node" menu (required to also use F3 search "Simple Node Operator" for quick access).
 def register():
     bpy.utils.register_class(NodeOperator)
     bpy.types.NODE_MT_node.append(menu_func)
diff --git a/release/scripts/templates_py/operator_simple.py b/release/scripts/templates_py/operator_simple.py
index 9edb07996c0..0ac6084dfa6 100644
--- a/release/scripts/templates_py/operator_simple.py
+++ b/release/scripts/templates_py/operator_simple.py
@@ -19,10 +19,12 @@ class SimpleOperator(bpy.types.Operator):
         main(context)
         return {'FINISHED'}
 
+
 def menu_func(self, context):
     self.layout.operator(SimpleOperator.bl_idname, text=SimpleOperator.bl_label)
 
-# Register and add to the "object" menu (required to also use F3 search "Simple Object Operator" for quick access)
+
+# Register and add to the "object" menu (required to also use F3 search "Simple Object Operator" for quick access).
 def register():
     bpy.utils.register_class(SimpleOperator)
     bpy.types.VIEW3D_MT_object.append(menu_func)
diff --git a/release/scripts/templates_py/ui_tool_simple.py b/release/scripts/templates_py/ui_tool_simple.py
index fa81b3b58a9..4d009444f2f 100644
--- a/release/scripts/templates_py/ui_tool_simple.py
+++ b/release/scripts/templates_py/ui_tool_simple.py
@@ -61,8 +61,8

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list