-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: cleanup codebase, support for python >=3.7 #165
Conversation
Basic cleanup, error and code climate changes
@@ -172,7 +172,7 @@ def _chunk_batches(self, lst: List[dict]) -> List[List[dict]]: | |||
n = self.__settings.destination_batch_size | |||
return [lst[i * n: (i + 1) * n] for i in range((len(lst) + n - 1) // n)] | |||
|
|||
def _process_data_frame(self, data_frame) -> Tuple[list, list, list]: | |||
def _process_data_frame(self, data_frame) -> tuple[list, list, list]: |
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.
Value 'tuple' is unsubscriptable
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.
@Rukesh-Kapuluru this one here
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.
Looks good to me.Any reason not to go to 3.9 version?
@@ -1,7 +1,7 @@ | |||
""" | |||
handle ETL of offline conversion data from Athena to Google Ads API | |||
""" | |||
from typing import List, Tuple | |||
from typing import List, Union, Tuple, Dict, Any |
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.
Unused Union imported from typing
Code Climate has analyzed commit 7610c7a and detected 8 issues on this pull request. Here's the issue category breakdown:
Note: there are 5 critical issues. The test coverage on the diff in this pull request is 27.5% (50% is the threshold). This pull request will bring the total coverage in the repository to 49.7% (0.2% change). View more on Code Climate. |
No Github issue, doing general code maintenance
What changes are proposed in this PR?
How was this tested?