Skip to content

Commit

Permalink
chore: Document noqa usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 15, 2024
1 parent 63fd459 commit 8ef8613
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(","))

Expand Down
4 changes: 2 additions & 2 deletions backend/exporter/gdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8ef8613

Please sign in to comment.