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

sort import to make ruff happy #350

Merged

Conversation

mplsgrant
Copy link
Collaborator

Issue

Current CI is failing because ruff is unhappy that some of our imports are unsorted.

Solution

Perform a ruff --fix to sort the imports.

@willcl-ark
Copy link
Contributor

Thanks for this. The change is correct, but I feel like it's highlighting that something in our CI is off; for example the PR I merged was passing and this one is failing, which is the inverse of what should be happening...

Just trying to figure out why.

@willcl-ark
Copy link
Contributor

I'm wondering now if we need these lines in the ruff checkout step too.

Alternatively we could extract Ruff into its own workflow and have it run on pull_request, as we don't need pull_request_target for it.

@willcl-ark
Copy link
Contributor

Going to merge this for now, and fix properly later.

@willcl-ark willcl-ark merged commit b2c2223 into bitcoin-dev-project:main Apr 25, 2024
3 of 4 checks passed
@mplsgrant mplsgrant mentioned this pull request May 31, 2024
@mplsgrant mplsgrant deleted the 2024-04-ruff-sort-import branch June 1, 2024 19:21
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.

None yet

2 participants