Skip to content
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: Enable TRY and FLY Ruff rules #2264

Merged
merged 4 commits into from
Apr 12, 2024

Conversation

edgarrmondragon
Copy link
Collaborator

@edgarrmondragon edgarrmondragon commented Feb 23, 2024

@edgarrmondragon edgarrmondragon marked this pull request as ready for review February 23, 2024 23:24
@edgarrmondragon edgarrmondragon requested review from a team and kgpayne as code owners February 23, 2024 23:24
Copy link

codspeed-hq bot commented Feb 23, 2024

CodSpeed Performance Report

Merging #2264 will not alter performance

Comparing edgarrmondragon/chore/enable-TRY-FLY-ruff-rules (8601a28) with main (3585fff)

Summary

✅ 6 untouched benchmarks

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.98%. Comparing base (3585fff) to head (8601a28).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2264      +/-   ##
==========================================
+ Coverage   88.76%   88.98%   +0.22%     
==========================================
  Files          54       54              
  Lines        4779     4767      -12     
  Branches      930      926       -4     
==========================================
  Hits         4242     4242              
+ Misses        374      364      -10     
+ Partials      163      161       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edgarrmondragon edgarrmondragon marked this pull request as draft February 24, 2024 00:20
@edgarrmondragon edgarrmondragon force-pushed the edgarrmondragon/chore/enable-TRY-FLY-ruff-rules branch 3 times, most recently from 17bf5a6 to 0ef66a9 Compare February 26, 2024 22:36
@edgarrmondragon edgarrmondragon force-pushed the edgarrmondragon/chore/enable-TRY-FLY-ruff-rules branch from 0ef66a9 to 5cd0a70 Compare April 11, 2024 20:51
singer_sdk/plugin_base.py Outdated Show resolved Hide resolved
singer_sdk/tap_base.py Outdated Show resolved Hide resolved
singer_sdk/target_base.py Outdated Show resolved Hide resolved
@edgarrmondragon edgarrmondragon marked this pull request as ready for review April 11, 2024 23:07
if self.fail_on_record_validation_exception:
raise
self.logger.exception("Record validation failed %s", e)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was flagged by Ruff's TRY401 as being redundant

Comment on lines -925 to -926
except (AbortedSyncFailedException, AbortedSyncPausedException) as ex:
raise ex
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was also redundant

@edgarrmondragon edgarrmondragon merged commit adcd917 into main Apr 12, 2024
32 checks passed
@edgarrmondragon edgarrmondragon deleted the edgarrmondragon/chore/enable-TRY-FLY-ruff-rules branch April 12, 2024 23:19
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.

1 participant