-
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
how to know which black version executed in Github action #3575
Comments
Seems mostly reasonable although this is probably going to be less useful soon-ish as we plan on changing the default so the action version == black version installed. See #3543. |
I'm sorry, I did not know about that... In any case, I would suggest:
|
the mentioned PR was merged but I still have no idea on how to proceed. |
That PR only changes the default version of Black used in the GitHub Action to match the action version. There's still no programmable way of detecting the version of Black used, but it can be inferred in most cases now. |
inferred? how? that is definitely not enough information for me. nevermind, I'll just stop using black's github action and pip install from my project's dependencies. |
Is this related to a problem? Please describe.
I am running the latest Github action and the latest PyPi
black
version.I realize that the Github action can specify which
black
version to use, but I don't want to maintain that, too.I would like to add to the logs which black version is responsible to checking my Python scripts.
How can I accomplish that?
Describe the solution you'd like
I tried executing something similar to
black --version
in a subsequent step but if was obviously failing due toblack
not being in the PATH.Describe alternatives you've considered
I might as well
pip install black
in my action as opposed to using the official Github action.The text was updated successfully, but these errors were encountered: