We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da00fa9 commit 9f0cfedCopy full SHA for 9f0cfed
2 files changed
pre_commit/commands/install_uninstall.py
@@ -107,7 +107,7 @@ def install(
107
before, rest = contents.split(TEMPLATE_START)
108
to_template, after = rest.split(TEMPLATE_END)
109
110
- before = before.replace('#!/usr/bin/env python', shebang())
+ before = before.replace('#!/usr/bin/env python3', shebang())
111
112
hook_file.write(before + TEMPLATE_START)
113
for line in to_template.splitlines():
pre_commit/resources/hook-tmpl
@@ -1,4 +1,4 @@
1
-#!/usr/bin/env python
+#!/usr/bin/env python3
2
"""File generated by pre-commit: https://pre-commit.com"""
3
from __future__ import print_function
4
0 commit comments