PEP fixes

This commit is contained in:
Matthias 2021-09-17 22:59:29 +02:00
parent 4c7d1e6658
commit 2498cbde79
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 2 additions and 3 deletions

View File

@ -2,9 +2,7 @@
""" This module provides template tags for handeling plugins """ This module provides template tags for handeling plugins
""" """
from django.utils.translation import ugettext_lazy as _
from django.conf import settings as djangosettings from django.conf import settings as djangosettings
from django import template from django import template
@ -16,6 +14,7 @@ def plugin_list(*args, **kwargs):
""" Return a list of all installed integration plugins """ """ Return a list of all installed integration plugins """
return djangosettings.INTEGRATION_PLUGIN_LIST return djangosettings.INTEGRATION_PLUGIN_LIST
@register.simple_tag() @register.simple_tag()
def plugin_settings(plugin, *args, **kwargs): def plugin_settings(plugin, *args, **kwargs):
""" Return a list of all settings for a plugin """ """ Return a list of all settings for a plugin """

View File

@ -54,7 +54,7 @@ def get_plugins(pkg, baseclass):
return plugins return plugins
def load_plugins(name:str, module, cls): def load_plugins(name: str, module, cls):
"""general function to load a plugin class """general function to load a plugin class
:param name: name of the plugin for logs :param name: name of the plugin for logs