A framework for managing and maintaining multi-language pre-commit hooks.
Find a file
Antonio Gutierrez b64a102e49
install_uninstall: prefer shebang with only major version
Having a major.minor version of python in the shebangs, has the unwanted
side effect of requiring an uninstallation and then reinstallation
all the pre-commit hooks, once the system updates the python
installation to a newer minor version, since it will not find the
version which the shebangs specifies.

To make matters worse the uninstallation of the hooks has to be manual
since the script will not be able to run for the aforementioned reason.

This change makes the python symlink with just the major version as the
preferred choice over the major.minor version specified shebang.

Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
2020-12-19 04:04:37 +01:00
.github Add link to GitHub Sponsors + Open Collective 2020-11-19 17:13:02 -08:00
pre_commit install_uninstall: prefer shebang with only major version 2020-12-19 04:04:37 +01:00
testing also produce sha256sum of pyz on creation 2020-11-25 13:45:22 -08:00
tests added warning if mutable rev is used 2020-12-18 12:20:21 -08:00
.gitignore add initial dotnet support 2020-09-27 15:04:35 -07:00
.pre-commit-config.yaml v2.9.3 2020-12-07 15:06:39 -08:00
.pre-commit-hooks.yaml Remove validate_config hook 2017-08-23 14:06:48 -07:00
azure-pipelines.yml add coursier (jvm) as a language 2020-10-27 09:21:54 -07:00
CHANGELOG.md fix typo in CHANGELOG 2020-12-07 15:09:02 -08:00
CONTRIBUTING.md Add foor missing required dependencies in CONTRIBUTING.md 2020-06-12 18:38:44 +02:00
LICENSE MIT 2014-06-05 08:57:40 -07:00
README.md Add pre-commit.ci 2020-10-26 16:11:27 -07:00
requirements-dev.txt make an exe stub for windows 2020-09-28 18:37:10 -07:00
setup.cfg v2.9.3 2020-12-07 15:06:39 -08:00
setup.py Migrate setup.py to setup.cfg declarative metadata 2019-02-27 22:12:03 -08:00
tox.ini add initial dotnet support 2020-09-27 15:04:35 -07:00

Build Status Azure DevOps coverage pre-commit.ci status

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/