Add 'install-hooks' to COMMANDS_NO_GIT

This commit is contained in:
Janek Lasocki-Biczysko 2021-10-19 00:44:27 +01:00
parent 2ac26e221c
commit 83cecf6e18

View file

@ -36,7 +36,9 @@ logger = logging.getLogger('pre_commit')
os.environ.pop('__PYVENV_LAUNCHER__', None) os.environ.pop('__PYVENV_LAUNCHER__', None)
COMMANDS_NO_GIT = {'clean', 'gc', 'init-templatedir', 'sample-config'} COMMANDS_NO_GIT = {
'clean', 'gc', 'init-templatedir', 'install-hooks', 'sample-config'
}
def _add_config_option(parser: argparse.ArgumentParser) -> None: def _add_config_option(parser: argparse.ArgumentParser) -> None: