Loading .config/git/template/hooks/commit-msg +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ else: os.environ.pop('__PYVENV_LAUNCHER__', None) # start templated INSTALL_PYTHON = '/usr/bin/python3' ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=commit-msg', '--skip-on-missing-config'] # end templated ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__)))) Loading @@ -25,9 +24,7 @@ ARGS.append('--') ARGS.extend(sys.argv[1:]) DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?' if os.access(INSTALL_PYTHON, os.X_OK): CMD = [INSTALL_PYTHON, '-mpre_commit'] elif which('pre-commit'): if which('pre-commit'): CMD = ['pre-commit'] else: raise SystemExit(DNE) Loading .config/git/template/hooks/pre-commit +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ else: os.environ.pop('__PYVENV_LAUNCHER__', None) # start templated INSTALL_PYTHON = '/usr/bin/python3' ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=pre-commit', '--skip-on-missing-config'] # end templated ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__)))) Loading @@ -25,9 +24,7 @@ ARGS.append('--') ARGS.extend(sys.argv[1:]) DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?' if os.access(INSTALL_PYTHON, os.X_OK): CMD = [INSTALL_PYTHON, '-mpre_commit'] elif which('pre-commit'): if which('pre-commit'): CMD = ['pre-commit'] else: raise SystemExit(DNE) Loading .config/git/template/hooks/pre-push +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ else: os.environ.pop('__PYVENV_LAUNCHER__', None) # start templated INSTALL_PYTHON = '/usr/bin/python3' ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=pre-push', '--skip-on-missing-config'] # end templated ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__)))) Loading @@ -25,9 +24,7 @@ ARGS.append('--') ARGS.extend(sys.argv[1:]) DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?' if os.access(INSTALL_PYTHON, os.X_OK): CMD = [INSTALL_PYTHON, '-mpre_commit'] elif which('pre-commit'): if which('pre-commit'): CMD = ['pre-commit'] else: raise SystemExit(DNE) Loading Loading
.config/git/template/hooks/commit-msg +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ else: os.environ.pop('__PYVENV_LAUNCHER__', None) # start templated INSTALL_PYTHON = '/usr/bin/python3' ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=commit-msg', '--skip-on-missing-config'] # end templated ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__)))) Loading @@ -25,9 +24,7 @@ ARGS.append('--') ARGS.extend(sys.argv[1:]) DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?' if os.access(INSTALL_PYTHON, os.X_OK): CMD = [INSTALL_PYTHON, '-mpre_commit'] elif which('pre-commit'): if which('pre-commit'): CMD = ['pre-commit'] else: raise SystemExit(DNE) Loading
.config/git/template/hooks/pre-commit +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ else: os.environ.pop('__PYVENV_LAUNCHER__', None) # start templated INSTALL_PYTHON = '/usr/bin/python3' ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=pre-commit', '--skip-on-missing-config'] # end templated ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__)))) Loading @@ -25,9 +24,7 @@ ARGS.append('--') ARGS.extend(sys.argv[1:]) DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?' if os.access(INSTALL_PYTHON, os.X_OK): CMD = [INSTALL_PYTHON, '-mpre_commit'] elif which('pre-commit'): if which('pre-commit'): CMD = ['pre-commit'] else: raise SystemExit(DNE) Loading
.config/git/template/hooks/pre-push +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ else: os.environ.pop('__PYVENV_LAUNCHER__', None) # start templated INSTALL_PYTHON = '/usr/bin/python3' ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=pre-push', '--skip-on-missing-config'] # end templated ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__)))) Loading @@ -25,9 +24,7 @@ ARGS.append('--') ARGS.extend(sys.argv[1:]) DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?' if os.access(INSTALL_PYTHON, os.X_OK): CMD = [INSTALL_PYTHON, '-mpre_commit'] elif which('pre-commit'): if which('pre-commit'): CMD = ['pre-commit'] else: raise SystemExit(DNE) Loading