mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
A framework for managing and maintaining multi-language pre-commit hooks.
Prior to this commit, a cached virtualenv could be erroneously re-used, causing failures in pre-commit hooks. This is caused by incorrect normalization in `get_default_version`, resulting in a cache key of `"python3"`, regardless of the minor version used. This commit updates the implementation of `get_default_version` for python-based hooks to return `os.path.realpath(sys.executable)`. This ensures that the correct python version is used for running pre-commit hooks. |
||
|---|---|---|
| .github | ||
| pre_commit | ||
| testing | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .pre-commit-hooks.yaml | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| requirements-dev.txt | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||
pre-commit
A framework for managing and maintaining multi-language pre-commit hooks.
For more information see: https://pre-commit.com/