Skip to content

Commit 08d82b5

Browse files
committed
Apply ruff formatting (line-length=120)
1 parent 5f6016a commit 08d82b5

3 files changed

Lines changed: 102 additions & 113 deletions

File tree

netbox_custom_objects_tab/__init__.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,34 @@
22

33

44
class NetBoxCustomObjectsTabConfig(PluginConfig):
5-
name = 'netbox_custom_objects_tab'
6-
verbose_name = 'Custom Objects Tab'
5+
name = "netbox_custom_objects_tab"
6+
verbose_name = "Custom Objects Tab"
77
description = 'Adds a "Custom Objects" tab to NetBox object detail pages'
8-
version = '1.0.0'
9-
author = 'Jan Krupa'
10-
author_email = 'jan.krupa@cesnet.cz'
11-
base_url = 'custom-objects-tab'
12-
min_version = '4.5.0'
13-
max_version = '4.5.99'
8+
version = "1.0.0"
9+
author = "Jan Krupa"
10+
author_email = "jan.krupa@cesnet.cz"
11+
base_url = "custom-objects-tab"
12+
min_version = "4.5.0"
13+
max_version = "4.5.99"
1414
default_settings = {
1515
# app_label.model_name strings, or app_label.* to include all models in an app.
16-
'models': [
17-
'dcim.*',
18-
'ipam.*',
19-
'virtualization.*',
20-
'tenancy.*',
21-
'contacts.*',
16+
"models": [
17+
"dcim.*",
18+
"ipam.*",
19+
"virtualization.*",
20+
"tenancy.*",
21+
"contacts.*",
2222
],
2323
# Label shown on the tab; override in PLUGINS_CONFIG.
24-
'label': 'Custom Objects',
24+
"label": "Custom Objects",
2525
# Tab sort weight; lower values appear further left.
26-
'weight': 2000,
26+
"weight": 2000,
2727
}
2828

2929
def ready(self):
3030
super().ready()
3131
from . import views
32+
3233
views.register_tabs()
3334

3435

netbox_custom_objects_tab/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Tab URLs live under the parent model's namespace (e.g., /dcim/devices/<pk>/custom-objects/).
22
# This plugin registers no pages of its own; urlpatterns must still exist for the plugin loader.
3-
app_name = 'netbox_custom_objects_tab'
3+
app_name = "netbox_custom_objects_tab"
44
urlpatterns = []

0 commit comments

Comments
 (0)