-
Notifications
You must be signed in to change notification settings - Fork 421
chore(batch): Housekeeping for recent changes #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Changes: * base.py - `records` can't just be iterable as we reference it by `__getitem__` * base.py - logger.debugger is expecting a `%s` * docs - Typos in the docs * formatter.py - `_build_root_keys` can be a static method
Codecov Report
@@ Coverage Diff @@
## develop #157 +/- ##
============================================
+ Coverage 97.92% 100.00% +2.07%
============================================
Files 33 33
Lines 917 918 +1
Branches 77 77
============================================
+ Hits 898 918 +20
+ Misses 19 0 -19
Continue to review full report at Codecov.
|
Changes: * Make docstrings consistent * Add missing test cases (although this might be trivial)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the housekeeping help before 1.5.0 - One minor on string interpolation for consistency.
@@ -95,7 +95,7 @@ def failure_handler(self, record: Any, exception: Exception): | |||
"fail", exceptions args, original record | |||
""" | |||
entry = ("fail", exception.args, record) | |||
logger.debug("Record processing exception: ", exception) | |||
logger.debug("Record processing exception: %s", exception) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change to f-string for consistency, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heitorlessa sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heitorlessa done.
""" | ||
Information about the Amazon Cognito identity that authorized the request. | ||
""" | ||
"""Information about the Amazon Cognito identity that authorized the request.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reminds me we need to prioritise a minter for NumPy docstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heitorlessa - sure
* develop: (57 commits) chore: bump version to 1.5.0 (#158) chore(batch): Housekeeping for recent changes (#157) docs: address readability feedbacks chore: add debug logging for sqs batch processing chore: remove middlewares module, moving decorator functionality to base and sqs docs: add detail to batch processing fix: throw exception by default if messages processing fails chore: add test for sqs_batch_processor interface fix: add sqs_batch_processor as its own method docs: simplify documentation more SQS specific focus Update for sqs_batch_processor interface chore: add sqs_batch_processor decorator to simplify interface feat(parameters): transform = "auto" (#133) chore: fix typos, docstrings and type hints (#154) chore: tiny changes for readability fix: ensure debug log event has latest ctx docs: rephrase the wording to make it more clear docs: refactor example; improve docs about creating your own processor refactor: remove references to BaseProcessor. Left BasePartialProcessor docs: add newly created Slack Channel fix: update image with correct sample ...
Issue #, if available:
Description of changes:
Changes:
records
can't just be iterable as we reference it by__getitem__
%s
_build_root_keys
can be a static methodChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.