pre-commit/pre_commit
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
..
commands install_uninstall: prefer shebang with only major version 2020-12-19 04:04:37 +01:00
languages fix for base executable with non-ascii characters on windows 2020-11-25 12:44:48 -08:00
meta_hooks add types_or 2020-11-02 17:25:10 +00:00
resources update rbenv / ruby-build 2020-09-22 23:03:01 -07:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
clientlib.py added warning if mutable rev is used 2020-12-18 12:20:21 -08:00
color.py warn on old list-style configuration 2020-07-25 13:04:54 -07:00
constants.py add support for post-commit 2020-04-27 10:55:22 -07:00
envcontext.py use slightly simpler enum syntax 2020-11-09 12:29:57 -08:00
error_handler.py Distinct error handling exit codes 2020-10-28 11:13:04 -07:00
errors.py check cygwin mismatch earlier 2020-09-20 10:42:11 -07:00
file_lock.py upgrade mypy to get typeshed fixes 2020-07-08 13:55:28 -07:00
git.py git: changed rev-parse option for Git 2.25 changes to --show-toplevel 2020-12-07 13:54:05 -08:00
hook.py add types_or 2020-11-02 17:25:10 +00:00
logging_handler.py Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
main.py check cygwin mismatch earlier 2020-09-20 10:42:11 -07:00
make_archives.py update rbenv / ruby-build 2020-09-22 23:03:01 -07:00
output.py More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
parse_shebang.py Use covdefaults to handle coveragerc 2020-02-29 14:25:19 -08:00
prefix.py Add types to pre-commit 2020-01-12 10:15:01 -08:00
repository.py fix atomic file replace on windows 2020-08-23 10:18:59 -07:00
staged_files_only.py fix hooks firing during staged_files_only 2020-05-02 14:00:21 -07:00
store.py fix atomic file replace on windows 2020-08-23 10:18:59 -07:00
util.py util: use set instead of tuple in errno check 2020-12-06 07:45:31 -08:00
xargs.py improve xargs when running windows batch files 2020-11-06 13:09:01 -08:00