jupyterhub/binderhub

pre-commit does not work for this repo if you do not use conda

yuvipanda opened this issue · 0 comments

Bug description

When trying to use pre-commit on a machine with no conda, it does not work. The following exception occurs:

➜ g commit
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('conda', 'env', 'create', '-p', '/Users/yuvipanda/.cache/pre-commit/repo2xt7fjkj/conda-default', '--file', 'environment.yml')
return code: 1
stdout:
    Executable `conda` not found
stderr: (none)
Check the log at /Users/yuvipanda/.cache/pre-commit/pre-commit.log

The script being run doesn't actually use anything conda specific, should just use whatever python pre-commit is already using.