From e54ccc356b634628fb49a63c450809a8dd5f6e3e Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sat, 14 Sep 2024 23:32:44 -0400 Subject: [PATCH] chore: Document noqa usage --- core/settings.py | 2 +- process/processors/loader.py | 2 +- process/util.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/settings.py b/core/settings.py index 994607b..444905b 100644 --- a/core/settings.py +++ b/core/settings.py @@ -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(",")) diff --git a/process/processors/loader.py b/process/processors/loader.py index 68c10d5..90c7700 100644 --- a/process/processors/loader.py +++ b/process/processors/loader.py @@ -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="", diff --git a/process/util.py b/process/util.py index ff4dd89..cc1ee81 100644 --- a/process/util.py +++ b/process/util.py @@ -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()