Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pre_commit/commands/install_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def install(
before, rest = contents.split(TEMPLATE_START)
to_template, after = rest.split(TEMPLATE_END)

before = before.replace('#!/usr/bin/env python', shebang())
before = before.replace('#!/usr/bin/env python3', shebang())

hook_file.write(before + TEMPLATE_START)
for line in to_template.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion pre_commit/resources/hook-tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""File generated by pre-commit: https://pre-commit.com"""
from __future__ import print_function

Expand Down