Skip to content

Commit 387de15

Browse files
ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
1 parent 8c3d837 commit 387de15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/djangocms_snippet/cms_toolbars.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def populate(self):
2424
def add_snippet_link_to_admin_menu(self):
2525
admin_menu = self.toolbar.get_or_create_menu(ADMIN_MENU_IDENTIFIER)
2626

27-
url = admin_reverse('djangocms_snippet_snippet_changelist')
27+
url = admin_reverse("djangocms_snippet_snippet_changelist")
2828

2929
admin_menu.add_sideframe_item(
3030
_("Snippets"),
@@ -47,10 +47,10 @@ def get_insert_position(cls, admin_menu, item_name):
4747
start = admin_menu.find_first(Break, identifier=SHORTCUTS_BREAK)
4848
end = admin_menu.find_first(Break, identifier=ADMINISTRATION_BREAK)
4949

50-
items = admin_menu.get_items()[start.index + 1: end.index]
50+
items = admin_menu.get_items()[start.index + 1 : end.index]
5151
for idx, item in enumerate(items):
5252
try:
53-
if force_str(item_name.lower()) < force_str(item.name.lower()): # noqa: E501
53+
if force_str(item_name.lower()) < force_str(item.name.lower()):
5454
return idx + start.index + 1
5555
except AttributeError:
5656
# Some item types do not have a 'name' attribute.

0 commit comments

Comments
 (0)