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

Applying black failing in pre-commit action #159

Closed
jhlegarreta opened this issue Apr 26, 2022 · 2 comments
Closed

Applying black failing in pre-commit action #159

jhlegarreta opened this issue Apr 26, 2022 · 2 comments

Comments

@jhlegarreta
Copy link

I am experiencing a failure of the pre-commit action related to black in a private repository of mine. The issue I am experiencing had been described and reported to psf/black#2964 by someone else, and the PSF people merged a fix in psf/black#2966.

Adding a required-version for black (as introduced in psf/black#2300), in the pyproject.toml file e.g.

[tool.black]
required-version = ">=22.3.0"

does not seem to have any effect.

Is there a way to effectively solve this?

Thanks for this wonderful tool.

@asottile
Copy link
Member

this action is in maintenance-only mode and is very unlikely to be the problem -- it sounds like you should follow up with black directly

@jhlegarreta
Copy link
Author

Just for the records, solved by specifying the required version in the .pre-commit-config.yaml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants