🎨(ruff) fix linter error after ruff update
Fix the `make lint` errors after dependencies update.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# ruff: noqa: S311
|
|
||||||
"""
|
"""
|
||||||
Core application factories
|
Core application factories
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ class BasePluginAppConfigMixIn:
|
|||||||
Initialize the hooks registry when the application is ready.
|
Initialize the hooks registry when the application is ready.
|
||||||
This is called by Django when the application is loaded.
|
This is called by Django when the application is loaded.
|
||||||
"""
|
"""
|
||||||
from .registry import registry # pylint: disable=import-outside-toplevel
|
# pylint: disable=import-outside-toplevel
|
||||||
|
from .registry import registry # noqa: PLC0415
|
||||||
|
|
||||||
registry.register_app(self.name) # pylint: disable=no-member
|
registry.register_app(self.name) # pylint: disable=no-member
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ from mailbox_manager import enums, models
|
|||||||
from mailbox_manager.utils.dimail import DimailAPIClient
|
from mailbox_manager.utils.dimail import DimailAPIClient
|
||||||
|
|
||||||
# Prevent Ruff complaining about mark_safe below
|
# Prevent Ruff complaining about mark_safe below
|
||||||
# ruff: noqa: S308
|
|
||||||
|
|
||||||
|
|
||||||
@admin.action(description=_("Import emails from dimail"))
|
@admin.action(description=_("Import emails from dimail"))
|
||||||
|
|||||||
@@ -15,4 +15,5 @@ class MailboxManagerConfig(AppConfig):
|
|||||||
"""
|
"""
|
||||||
Import signals when the app is ready.
|
Import signals when the app is ready.
|
||||||
"""
|
"""
|
||||||
import mailbox_manager.signals # pylint: disable=import-outside-toplevel, unused-import
|
# pylint: disable=import-outside-toplevel, unused-import
|
||||||
|
import mailbox_manager.signals # noqa: PLC0415
|
||||||
|
|||||||
Reference in New Issue
Block a user