Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
fixes for isort and black formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nzanepro committed Jan 13, 2022
1 parent 802eb6e commit 27c1c81
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
9 changes: 5 additions & 4 deletions src/pyvfx_boilerplate/boilerplate_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
https://github.com/mottosso/Qt.py
"""

import sys
import atexit
import os
import platform
import atexit
from . import mayapalette
import sys

import Qt
from Qt import QtWidgets, QtCore, QtCompat # pylint: disable=E0611
from Qt import QtCompat, QtCore, QtWidgets # pylint: disable=E0611

from . import mayapalette

try:
import maya.cmds as cmds
Expand Down
2 changes: 1 addition & 1 deletion src/pyvfx_boilerplate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if "QT_PREFERRED_PATH" in os.environ:
sys.path.append(os.environ["QT_PREFERRED_PATH"])

from pyvfx_boilerplate import menu # noqa
from pyvfx_boilerplate import menu # isort:skip


def main():
Expand Down
3 changes: 1 addition & 2 deletions src/pyvfx_boilerplate/mayapalette.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json

from Qt import QtGui
from Qt import QtWidgets
from Qt import QtGui, QtWidgets


def set_palette_from_dict(dct):
Expand Down
8 changes: 4 additions & 4 deletions src/pyvfx_boilerplate/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def activate_dockable():
# https://blenderartists.org/t/creating-a-custom-menu-option/627316/4

class PyvfxBoilerplateActivateOperator(bpy.types.Operator):
""" start the pyvfx_boilerplate ui"""
"""start the pyvfx_boilerplate ui"""

bl_idname = "pyvfx_boilerplate_activate"
bl_label = "boilerplate UI"
Expand All @@ -131,17 +131,17 @@ def execute(self, context):
return {"FINISHED"}

class TOPBAR_MT_pyvfx_menu(bpy.types.Menu):
""" create the pyvfx top menu and pyvfx menu item"""
"""create the pyvfx top menu and pyvfx menu item"""

bl_label = rootMenuName

def draw(self, context):
""" create the pyvfx menu item"""
"""create the pyvfx menu item"""
layout = self.layout
layout.operator("pyvfx_boilerplate_activate")

def menu_draw(self, context):
""" create the pyvfx top menu"""
"""create the pyvfx top menu"""
self.layout.menu("TOPBAR_MT_pyvfx_menu")

def register():
Expand Down
1 change: 0 additions & 1 deletion src/pyvfx_boilerplate/utils/get_set_palette_data_qt4.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from PySide import QtGui


STYLE = "plastique"
GROUPS = ["Disabled", "Active", "Inactive", "Normal"]
ROLES = [
Expand Down
1 change: 0 additions & 1 deletion src/pyvfx_boilerplate/utils/get_set_palette_data_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from PySide2 import QtGui


STYLE = "plastique"
GROUPS = ["Disabled", "Active", "Inactive", "Normal"]
ROLES = [
Expand Down

0 comments on commit 27c1c81

Please sign in to comment.