mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
added basic run single hook implmentation
This commit is contained in:
parent
871ab4d72f
commit
27c341e2fb
3 changed files with 37 additions and 1 deletions
|
|
@ -15,6 +15,10 @@ def in_env():
|
|||
|
||||
def install_environment():
|
||||
assert local.path('setup.py').exists()
|
||||
# Return immediately if we already have a virtualenv
|
||||
if local.path('py_env').exists():
|
||||
return
|
||||
|
||||
# Install a virtualenv
|
||||
local['virtualenv'][PY_ENV]()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue