-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Unifying black version in pre-commit config file #6413
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
Conversation
@@ -8,7 +8,7 @@ repos: | |||
rev: v1.0.0 | |||
hooks: | |||
- id: blacken-docs | |||
additional_dependencies: [black==19.3b0] | |||
additional_dependencies: [black==19.10b0] |
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.
pytest/.pre-commit-config.yaml
Line 3 in 26a2e1a
rev: 19.10b0 |
What do you mean by "the black version"? IFAIK the pre-commit file it is the only place where we define which version of black we use. |
Sorry, I think I was not clear. The pre-commit hook to run black is using the version 19.10 and the blacken-docs is set to use black 19.3. Am I right? |
Yes, makes sense to use the same newer version as here: |
@marcelotrevisani thanks for the clarification, that was probably an oversight and we should be using the same version. 😁 |
@asottile i wonder if pre-commit could be extended to substitute the rev of other envs inside of extra deps? |
pre-commit currently has no substitution and I don't want to change that |
Should the black version be the same as that is being in use by the black hook?