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.
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 tothe project metadata in pyproject.toml
. Further, Black will error if it's run with an incompatible Python version.