Remove or narrow remaining noqa directives

pull/10556/head
Matt Westcott 2023-06-12 18:48:19 +01:00 zatwierdzone przez Matt Westcott
rodzic 862a57d2f7
commit c1333d8c46
3 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -3,16 +3,16 @@ from .settings import * # noqa: F403
# Settings meant to run the test suite with Djangos 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

Wyświetl plik

@ -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(

Wyświetl plik

@ -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",