From 8ef8613a62e03f298624eed6964406282f891f08 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sat, 14 Sep 2024 23:35:00 -0400 Subject: [PATCH] chore: Document noqa usage --- backend/core/settings.py | 2 +- backend/exporter/gdocs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/core/settings.py b/backend/core/settings.py index 147d183..91d0fe2 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -36,7 +36,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = not production -ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]", "0.0.0.0"] # noqa: S104 +ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]", "0.0.0.0"] # noqa: S104 # Docker if "ALLOWED_HOSTS" in os.environ: ALLOWED_HOSTS.extend(os.getenv("ALLOWED_HOSTS").split(",")) diff --git a/backend/exporter/gdocs.py b/backend/exporter/gdocs.py index e9b8424..ab0020d 100644 --- a/backend/exporter/gdocs.py +++ b/backend/exporter/gdocs.py @@ -60,7 +60,7 @@ def add_image_file(self, buffer, name: str = "image.png") -> str: # Updating manifest with ZipFile(self.output_file) as zipfile, zipfile.open("META-INF/manifest.xml") as content: - root = etree.parse(content).getroot() # noqa: S320 + root = etree.parse(content).getroot() # noqa: S320 # our data self.remove_file_from_zip(self.output_file, "META-INF/manifest.xml") @@ -109,7 +109,7 @@ def get_content(self, file_id: str) -> etree._Element: ZipFile(self.google_drive_cache.get_file_path(file_id)) as zipfile, zipfile.open("content.xml") as content, ): - return etree.parse(content).getroot() # noqa: S320 + return etree.parse(content).getroot() # noqa: S320 # our data class GoogleDriveCache: