mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Implement default_language_version
This commit is contained in:
parent
579b05e424
commit
d3b5a41830
23 changed files with 150 additions and 103 deletions
|
|
@ -6,6 +6,7 @@ import logging
|
|||
import os.path
|
||||
import sys
|
||||
|
||||
import pre_commit.constants as C
|
||||
from pre_commit import git
|
||||
from pre_commit import output
|
||||
from pre_commit.clientlib import load_config
|
||||
|
|
@ -51,7 +52,7 @@ def shebang():
|
|||
py = 'python'
|
||||
else:
|
||||
py = python.get_default_version()
|
||||
if py == 'default':
|
||||
if py == C.DEFAULT:
|
||||
py = 'python'
|
||||
return '#!/usr/bin/env {}'.format(py)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue