mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
upgrade hooks, pyupgrade pre-commit
This commit is contained in:
parent
764c765d29
commit
30c1e8289f
91 changed files with 176 additions and 437 deletions
|
|
@ -1,7 +1,4 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
from pre_commit.languages import python
|
||||
from pre_commit.util import CalledProcessError
|
||||
|
|
@ -13,10 +10,7 @@ ENVIRONMENT_DIR = 'py_venv'
|
|||
|
||||
|
||||
def get_default_version(): # pragma: no cover (version specific)
|
||||
if sys.version_info < (3,):
|
||||
return 'python3'
|
||||
else:
|
||||
return python.get_default_version()
|
||||
return python.get_default_version()
|
||||
|
||||
|
||||
def orig_py_exe(exe): # pragma: no cover (platform specific)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue