pre-commit/pre_commit/commands
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
..
__init__.py Move commands into their own files. 2014-06-13 19:52:14 -07:00
autoupdate.py fixed message if repo couldn't be updated due to missing hook(s) 2020-11-22 13:34:10 -08:00
clean.py Add types to pre-commit 2020-01-12 10:15:01 -08:00
gc.py Add types to pre-commit 2020-01-12 10:15:01 -08:00
hook_impl.py add support for post-commit 2020-04-27 10:55:22 -07:00
init_templatedir.py add init-templatedir --no-allow-missing-config 2020-07-20 19:02:35 -07:00
install_uninstall.py install_uninstall: prefer shebang with only major version 2020-12-19 04:04:37 +01:00
migrate_config.py Merge pull request #1684 from pre-commit/migrate_config_less_work 2020-11-05 16:27:23 -08:00
run.py fix the default value for types_or 2020-11-25 18:21:37 -08:00
sample_config.py Update pre-commit version in sample config 2020-09-27 14:54:42 -07:00
try_repo.py Replace aspy.yaml with sort_keys=False 2020-01-31 17:18:59 -08:00