diff --git a/wagtail/test/settings_ui.py b/wagtail/test/settings_ui.py index 17d55e127f..269cddf5e4 100644 --- a/wagtail/test/settings_ui.py +++ b/wagtail/test/settings_ui.py @@ -3,16 +3,16 @@ from .settings import * # noqa: F403 # Settings meant to run the test suite with Django’s development server, for integration tests. DEBUG = True -DATABASES["default"]["NAME"] = "ui_tests.db" # noqa +DATABASES["default"]["NAME"] = "ui_tests.db" # noqa: F405 -INSTALLED_APPS += [ # noqa +INSTALLED_APPS += [ # noqa: F405 "pattern_library", ] # Allow loopback address to access the server without DNS resolution (lack of Happy Eyeballs in Node 18). -ALLOWED_HOSTS += ["127.0.0.1"] # noqa +ALLOWED_HOSTS += ["127.0.0.1"] # noqa: F405 -TEMPLATES[0]["OPTIONS"]["builtins"] = ["pattern_library.loader_tags"] # noqa +TEMPLATES[0]["OPTIONS"]["builtins"] = ["pattern_library.loader_tags"] # noqa: F405 PATTERN_LIBRARY = { # Groups of templates for the pattern library navigation. The keys diff --git a/wagtail/tests/tests.py b/wagtail/tests/tests.py index d3ea8895fe..6aef2e85a3 100644 --- a/wagtail/tests/tests.py +++ b/wagtail/tests/tests.py @@ -287,7 +287,7 @@ class TestSiteRootPathsCache(TestCase): homepage = Page.objects.get(url_path="/home/") # Warm up the cache by getting the url - _ = homepage.url # noqa + _ = homepage.url # Check that the cache has been set correctly self.assertEqual( @@ -340,7 +340,7 @@ class TestSiteRootPathsCache(TestCase): homepage = Page.objects.get(url_path="/home/") # Warm up the cache by getting the url - _ = homepage.url # noqa + _ = homepage.url # Check that the cache has been set self.assertEqual( @@ -369,7 +369,7 @@ class TestSiteRootPathsCache(TestCase): homepage = Page.objects.get(url_path="/home/") # Warm up the cache by getting the url - _ = homepage.url # noqa + _ = homepage.url # Check that the cache has been set self.assertEqual( @@ -419,7 +419,7 @@ class TestSiteRootPathsCache(TestCase): default_site.save() # Warm up the cache by getting the url - _ = homepage.url # noqa + _ = homepage.url # Move new homepage to root new_homepage.move(root_page, pos="last-child") @@ -447,7 +447,7 @@ class TestSiteRootPathsCache(TestCase): homepage = Page.objects.get(url_path="/home/") # Warm up the cache by getting the url - _ = homepage.url # noqa + _ = homepage.url # Change homepage title and slug homepage.title = "New home" @@ -466,7 +466,7 @@ class TestSiteRootPathsCache(TestCase): homepage = Page.objects.get(url_path="/home/") # Warm up the cache by getting the url - _ = homepage.url # noqa + _ = homepage.url # Translate the homepage translated_homepage = homepage.copy_for_translation( diff --git a/wagtail/utils/setup.py b/wagtail/utils/setup.py index 64a243fc0d..9c14895ce6 100644 --- a/wagtail/utils/setup.py +++ b/wagtail/utils/setup.py @@ -81,7 +81,7 @@ class check_bdist_egg(bdist_egg): if not os.path.isdir(self.sentinel_dir): print( # noqa: T201 "\n".join( - [ # noqa + [ "************************************************************", "The front end assets for Wagtail are missing.", "To generate the assets, please refer to the documentation in",