Skip to content

Formatting code as per the standards using pre-commit config#51

Open
rdeshmukh15 wants to merge 3 commits intocrest-workfrom
formatting-code
Open

Formatting code as per the standards using pre-commit config#51
rdeshmukh15 wants to merge 3 commits intocrest-workfrom
formatting-code

Conversation

@rdeshmukh15
Copy link
Copy Markdown
Member

Description of change

Formatting code as per the standards using pre-commit config

Manual QA steps

Risks

Rollback steps

  • revert this branch

@vishalp-dev
Copy link
Copy Markdown
Member

Please delete the .vscode folder and its settings.json

Comment on lines 142 to 145
def is_bookmark_old(self, value):
bookmark = self.get_bookmark()
return utils.strptime_to_utc(value) >= bookmark

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary abstraction of function

Comment on lines 108 to 111
for stream in Context.catalog["streams"]:
if Context.is_selected(stream["tap_stream_id"]):
singer.write_schema(stream["tap_stream_id"],
stream["schema"],
stream["key_properties"])
singer.write_schema(stream["tap_stream_id"], stream["schema"], stream["key_properties"])
Context.counts[stream["tap_stream_id"]] = 0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use the following function instead

catalog.get_selected_streams(state):

vishalp-dev

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants