Add # noqa to print statements

pull/354/head
Sage Abdullah 2022-08-19 14:08:44 +07:00 zatwierdzone przez Karl Hobley
rodzic 83eeca85d4
commit 32f5e55ef5
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ class Command(BaseCommand):
fixtures_dir = os.path.join(settings.PROJECT_DIR, "base", "fixtures")
fixture_file = os.path.join(fixtures_dir, "bakerydemo.json")
print("Copying media files to configured storage...")
print("Copying media files to configured storage...") # noqa: T201
local_storage = FileSystemStorage(os.path.join(fixtures_dir, "media"))
self._copy_files(local_storage, "") # file storage paths are relative
@ -40,6 +40,6 @@ class Command(BaseCommand):
call_command("loaddata", fixture_file, verbosity=0)
call_command("update_index", verbosity=0)
print(
print( # noqa: T201
"Awesome. Your data is loaded! The bakery's doors are almost ready to open..."
)

Wyświetl plik

@ -14,7 +14,7 @@ if "DJANGO_SECRET_KEY" in os.environ:
SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]
else:
# Use if/else rather than a default value to avoid calculating this if we don't need it
print(
print( # noqa: T201
"WARNING: DJANGO_SECRET_KEY not found in os.environ. Generating ephemeral SECRET_KEY."
)
SECRET_KEY = "".join(