mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 20:40:08 -06:00
Merge pull request #986 from tim77/master
Specify env python explicitly.
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user