2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

PEP fixes

This commit is contained in:
Matthias 2022-01-11 01:25:21 +01:00
parent 0f7c277e69
commit 86142856f7
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
3 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@ Utility file to enable simper imports
""" """
from .registry import registry from .registry import registry
from .plugin import InvenTreePlugin from .plugin import AAInvenTreePlugin as InvenTreePlugin
from .integration import IntegrationPluginBase from .integration import IntegrationPluginBase
from .action import ActionPlugin from .action import ActionPlugin

View File

@ -26,7 +26,7 @@ class IntegrationPluginError(Exception):
class MixinImplementationError(ValueError): class MixinImplementationError(ValueError):
""" """
Error if mixin was implemented wrong in plugin Error if mixin was implemented wrong in plugin
Mostly raised if constant is missing Mostly raised if constant is missing
""" """
pass pass

View File

@ -7,7 +7,7 @@ from django.db.utils import OperationalError, ProgrammingError
from django.utils.text import slugify from django.utils.text import slugify
class InvenTreePlugin(): class AAInvenTreePlugin():
""" """
Base class for a plugin Base class for a plugin
""" """
@ -34,7 +34,6 @@ class InvenTreePlugin():
If not set plugin name slugified If not set plugin name slugified
""" """
slug = getattr(self, 'PLUGIN_SLUG', None) slug = getattr(self, 'PLUGIN_SLUG', None)
if slug is None: if slug is None: