Skip to content

Commit 13486c0

Browse files
committed
style: fix import sorting and docstring formatting
1 parent 1f1a770 commit 13486c0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

netbox_diode_plugin/api/matcher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
from django.db.models.fields import SlugField
1616
from django.db.models.lookups import Exact
1717
from django.db.models.query_utils import Q
18-
from extras.models.customfields import CustomField
19-
2018
from django.db.models.signals import post_delete, post_save
19+
from extras.models.customfields import CustomField
2120

2221
from .common import UnresolvedReference
2322
from .compat import in_version_range

netbox_diode_plugin/api/profile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def summary(self):
8383

8484

8585
def profiled(name):
86-
"""Decorator to time a function and record it in the profile context.
86+
"""
87+
Decorator to time a function and record it in the profile context.
8788
8889
No-op when no profile context exists (i.e. outside of a profiled request).
8990
"""
@@ -108,7 +109,8 @@ def wrapper(*args, **kwargs):
108109

109110

110111
class DiodeProfileMiddleware:
111-
"""Django middleware for profiling Diode plugin API requests.
112+
"""
113+
Django middleware for profiling Diode plugin API requests.
112114
113115
Wraps each request to the plugin API with:
114116
- Total request timing

0 commit comments

Comments
 (0)