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

Refactor pre-commit using composite action. #18

Merged
merged 6 commits into from
May 9, 2024

Conversation

wagnerlmichael
Copy link
Member

@wagnerlmichael wagnerlmichael commented Apr 29, 2024

This PR factors out the pre-commit action to our composite action in the actions repo. Previously we were manually installing dependencies in the action. Since pre-commit run handles this automatically, I refactored the .pre-commit-config.yaml file to look similar to other repos we have. It also now points to the repo URLs explicitly, which was needed to make sure the action worked after the removal of the pip installs.

Note: for whatever reason, isort version 5.11.0 breaks the pre-commit, and bumping it to 5.120 fixes it.

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.74%. Comparing base (342de02) to head (cbe7b02).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   98.74%   98.74%           
=======================================
  Files          12       12           
  Lines         478      478           
=======================================
  Hits          472      472           
  Misses          6        6           

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

@wagnerlmichael wagnerlmichael marked this pull request as ready for review April 29, 2024 17:57
Copy link

@jeancochrane jeancochrane left a comment

Choose a reason for hiding this comment

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

Nice work debugging the install failures!

@dfsnow
Copy link
Member

dfsnow commented May 8, 2024

@wagnerlmichael Is this ready to merge?

@dfsnow dfsnow merged commit 88a5481 into main May 9, 2024
9 checks passed
@dfsnow dfsnow deleted the re-factor-pre-commit-using-composite-action branch May 9, 2024 14:42
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.

3 participants