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

Remove Python 3.8 constraint from Black pre-commit config #647

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

Eric-Arellano
Copy link
Contributor

The language_version option tells pre-commit to run the hook using that specific version.

The current setting of 3.8 messes me up on my M1 because Python 3.8 does not work very well on Apple Silicon.

Generally, it should not be necessary to set this value. Black determines what Python version to target with its --target-version option, which defaults to the project metadata in pyproject.toml. Further, Black will error if it's run with an incompatible Python version.

@pradyunsg
Copy link
Owner

Yea, they added that recently; way after I had authored this file. Thanks for this PR! ^>^

@pradyunsg pradyunsg merged commit 4904fd5 into pradyunsg:main Apr 13, 2023
@Eric-Arellano Eric-Arellano deleted the pre-commit-py39 branch April 13, 2023 16:46
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.

2 participants