Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 17, 2025
1 parent 8c6813a commit bd78a1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fsd_utils/logging/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

# Log formats can use any attributes available in
# https://docs.python.org/3/library/logging.html#logrecord-attributes
LOG_FORMAT = "%(name)s %(levelname)s " "- %(message)s - from %(funcName)s in %(pathname)s:%(lineno)d"
LOG_FORMAT = "%(name)s %(levelname)s - %(message)s - from %(funcName)s in %(pathname)s:%(lineno)d"

_DEFAULT_FSD_LOG_LEVEL = "INFO"

DEV_DEBUG_LOG_FORMAT = "%(asctime)s %(levelname)s - %(message)s - from %(funcName)s() in" " %(filename)s:%(lineno)d"
DEV_DEBUG_LOG_FORMAT = "%(asctime)s %(levelname)s - %(message)s - from %(funcName)s() in %(filename)s:%(lineno)d"


# fields named in LOG_FORMAT and LOG_FORMAT_EXTRA_JSON_KEYS
Expand Down Expand Up @@ -351,6 +351,6 @@ def process_log_record(self, log_record):
break

else:
logger.exception("Too many missing keys when attempting to format log message:" " gave up")
logger.exception("Too many missing keys when attempting to format log message: gave up")

return log_record
2 changes: 1 addition & 1 deletion fsd_utils/services/aws_sqs_extended_client_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExceptionMessages:
"instead of the message attributes."
)
INVALID_NUMBER_OF_MESSAGE_ATTRIBUTES = (
"Number of message attributes {0} exceeds the maximum allowed for " "large-payload messages {1}"
"Number of message attributes {0} exceeds the maximum allowed for large-payload messages {1}"
)
INVALID_ATTRIBUTE_NAME_PRESENT = "Message attribute name {0} is reserved for use by the SQS extended client. "
INVALID_MESSAGE_BODY = "messageBody cannot be null or empty."
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_get_remote_data_json_404(self, flask_test_client):
},
"expected_response": [
"trusts one \n . 125\n . 1 April 2023 to 31 March 2024\n . Capital\n . Yes",
"\n trust two \n . 456\n . 1 April 2024 to 31 March 2025\n . Revenue\n" " . No",
"\n trust two \n . 456\n . 1 April 2024 to 31 March 2025\n . Revenue\n . No",
],
},
"single_value": {
Expand Down

0 comments on commit bd78a1c

Please sign in to comment.