mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-12 03:50:23 -06:00
added basic run single hook implmentation
This commit is contained in:
@@ -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]()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user