-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove ENV_PATH on Black action completion. #3759
Conversation
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.
Yeah, I'm not sure how this would cause issues, but this is a good idea either way. Thanks for filing the PR!
Please add a changelog entry though.
action/main.py
Outdated
@@ -73,5 +74,6 @@ | |||
stderr=STDOUT, | |||
encoding="utf-8", | |||
) | |||
shutil.rmtree(ENV_PATH) |
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.
Is it worth passing ignore_errors=True
to this call? An error is unlikely, but it also shouldn't fail the entire action IMO.
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.
I agree, I think an error is unlikely but yeah shouldn't fail the entire action.
Don't mind the PyPy failures, it seems like a recent PyYAML release broke things on PyPy... :/ |
@ichard26 I've added a changelog entry and the |
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.
Thanks, looks like another user confirmed the fix as well!
Description
Relates to #3708 by deleting the
.black.env
folder specified byENV_PATH
on action completion.I had a difficult time replicating the issue above @JelleZijlstra and I can't see that any changes were made to stable that would effect this behaviour. Probably worth deleting that
.black.env
dir anyway?Checklist - did you ...
CHANGES.md
if necessary?