Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f0cfed

Browse files
committed
Specify env python explicitly.
1 parent da00fa9 commit 9f0cfed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit/commands/install_uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def install(
107107
before, rest = contents.split(TEMPLATE_START)
108108
to_template, after = rest.split(TEMPLATE_END)
109109

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

112112
hook_file.write(before + TEMPLATE_START)
113113
for line in to_template.splitlines():

pre_commit/resources/hook-tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""File generated by pre-commit: https://pre-commit.com"""
33
from __future__ import print_function
44

0 commit comments

Comments
 (0)