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

[pre-commit.ci] pre-commit autoupdate #31

Closed
wants to merge 1 commit into from

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented May 23, 2022

updates:
- [github.com/psf/black: refs/tags/22.3.0:refs/tags/22.3.0 → 22.3.0](psf/black@refs/tags/22.3.0:refs/tags/22.3.0...22.3.0)
@andthum
Copy link
Owner

andthum commented May 24, 2022

Don't remove refs/tags/22.3.0:refs/tags/ in front of the version number of the black pre-commit hook. Without the prefix the black pre-commit hook will fail with exit code 1:

The required version `22` does not match the running version `0.1.dev1+gae2c075`!

This happens, because in pyproject.toml we set the required version of black to 22 but somehow the pre-commit hook has version 0.1.dev1+gae2c075 when only specifying rev: "22.3.0" without the above prefix.

See also the discussion psf/black#2493 (comment) and commit 0b35eaf.

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

1 participant