Skip to content

Commit 51c1b00

Browse files
committed
fix: more lint issues with ruff
1 parent ea66f8e commit 51c1b00

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

djangocms_frontend/component_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import importlib
2-
import typing
32

43
from django import forms
54
from django.apps import apps

tests/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def create_page(self, title, **kwargs):
7979
return create_page(title=title, **kwargs)
8080

8181
def get_placeholders(self, page):
82-
from cms.models import Placeholder, PageContent
82+
from cms.models import PageContent, Placeholder
8383
page_content = PageContent.admin_manager.latest_content().get(language=self.language, page=self.page)
8484
return Placeholder.objects.get_for_obj(page_content)
8585

tests/grid/test_forms.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
from django.test import TestCase
22

3-
from djangocms_frontend.contrib.grid.forms import (
4-
GridColumnForm,
5-
GridRowForm,
6-
GridContainerForm)
3+
from djangocms_frontend.contrib.grid.forms import GridColumnForm, GridContainerForm, GridRowForm
74

85

96
class GridFormTestCase(TestCase):

tests/test_fields.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
from django import forms
22
from django.test import TestCase
33

4-
from djangocms_frontend.settings import DEVICE_CHOICES
54
from djangocms_frontend.fields import (
6-
AttributesField, TagTypeField,
7-
TagTypeFormField, DeviceChoiceField, OptionalDeviceChoiceField)
5+
AttributesField,
6+
DeviceChoiceField,
7+
OptionalDeviceChoiceField,
8+
TagTypeField,
9+
TagTypeFormField,
10+
)
11+
from djangocms_frontend.settings import DEVICE_CHOICES
812

913

1014
class FieldsTestCase(TestCase):

tests/test_plugin_tag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def test_non_frontend_plugin(self):
129129

130130
def test_autohero_component_registered_for_plugin_tag(self):
131131
from cms.plugin_pool import plugin_pool
132+
132133
from djangocms_frontend.plugin_tag import plugin_tag_pool
133134

134135
# Check that the AutoHero plugin is registered

tests/test_settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22

3-
43
INSTALLED_APPS = [
54
"django.contrib.contenttypes",
65
"django.contrib.auth",

tests/utilities/test_plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from unittest import skipIf
2+
23
from cms import __version__ as cms_version
34
from cms.api import add_plugin
45
from cms.test_utils.testcases import CMSTestCase
56
from cms.utils.urlutils import admin_reverse
6-
77
from djangocms_text.cms_plugins import TextPlugin
88

99
from djangocms_frontend.contrib.utilities.cms_plugins import (

0 commit comments

Comments
 (0)