Skip to content

Commit 5fc3878

Browse files
committed
style: use relative imports consistently within api package
1 parent 13486c0 commit 5fc3878

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

netbox_diode_plugin/api/authentication.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
from rest_framework.authentication import BaseAuthentication
1212
from rest_framework.exceptions import AuthenticationFailed
1313

14-
from netbox_diode_plugin.api.profile import get_profile_ctx, profiled
1514
from netbox_diode_plugin.plugin_config import (
1615
get_diode_auth_introspect_url,
1716
get_diode_user,
1817
get_required_token_audience,
1918
)
2019

20+
from .profile import get_profile_ctx, profiled
21+
2122
logger = logging.getLogger("netbox.diode_data")
2223

2324

netbox_diode_plugin/api/supported_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from rest_framework import serializers
1515
from utilities.api import get_serializer_for_model as netbox_get_serializer_for_model
1616

17-
from netbox_diode_plugin.api.plugin_utils import legal_fields, legal_object_types
17+
from .plugin_utils import legal_fields, legal_object_types
1818

1919
logger = logging.getLogger(__name__)
2020

netbox_diode_plugin/api/views.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
from rest_framework.exceptions import ValidationError
1111
from rest_framework.response import Response
1212

13-
from netbox_diode_plugin.api.applier import apply_changeset
14-
from netbox_diode_plugin.api.authentication import DiodeOAuth2Authentication
15-
from netbox_diode_plugin.api.common import (
13+
from .applier import apply_changeset
14+
from .authentication import DiodeOAuth2Authentication
15+
from .common import (
1616
Change,
1717
ChangeSet,
1818
ChangeSetException,
1919
ChangeSetResult,
2020
)
21-
from netbox_diode_plugin.api.differ import generate_changeset
22-
from netbox_diode_plugin.api.permissions import (
21+
from .differ import generate_changeset
22+
from .permissions import (
2323
SCOPE_NETBOX_READ,
2424
SCOPE_NETBOX_WRITE,
2525
IsAuthenticated,

0 commit comments

Comments
 (0)