Skip to content

Commit

Permalink
chore: Run ruff check .
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 14, 2024
1 parent a851cbb commit 1f19fbf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 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"]
ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]", "0.0.0.0"] # noqa: S104
if "ALLOWED_HOSTS" in os.environ:
ALLOWED_HOSTS.extend(os.getenv("ALLOWED_HOSTS").split(","))

Expand Down
2 changes: 1 addition & 1 deletion process/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class KingfisherProcessError(Exception):
"""Base class for exceptions from within this project."""


class AlreadyExists(KingfisherProcessError):
class AlreadyExists(KingfisherProcessError): # noqa: N818
"""Raised if an object is already saved to the database."""


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(
hash_md5 = hashlib.md5( # noqa: S324
json.dumps(data, separators=(",", ":"), sort_keys=True, use_decimal=True).encode("utf-8")
).hexdigest()

Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ ignore = [
"PTH", # pathlib
"A002", # compile builtin
"ARG001", "ARG002", "RUF012", # Django
"N818", # AlreadyExists error
"PLW2901", # release_or_record overridden
"S104", # Docker ALLOWED_HOSTS
"S324", # md5 hash
"TRY003", # Django command errors
]

Expand Down

0 comments on commit 1f19fbf

Please sign in to comment.