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 60f0901 commit e54ccc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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
2 changes: 1 addition & 1 deletion process/processors/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def create_collections(
sample=False,
# Steps
upgrade=False,
compile=False, # noqa: A002
compile=False, # noqa: A002 # consistency
check=False,
# Other
scrapyd_job="",
Expand Down
2 changes: 1 addition & 1 deletion process/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def finalback():


def get_or_create(model, data):
hash_md5 = hashlib.md5( # noqa: S324
hash_md5 = hashlib.md5( # noqa: S324 # non-cryptographic
json.dumps(data, separators=(",", ":"), sort_keys=True, use_decimal=True).encode("utf-8")
).hexdigest()

Expand Down

0 comments on commit e54ccc3

Please sign in to comment.