-
-
Notifications
You must be signed in to change notification settings - Fork 935
Closed
Labels
Description
It would be nice to have support for conda in pre-commit as a "language"/environment manager. This would enable setups where packages are installed through conda. The typical usage for this will be for Python and R setups (e.g. lorenzwalthert/precommit#99) where conda is most popular but as conda is language independent.
The implementation would work as follows:
- A hook is expected to have a requirements.txt that is installed using
conda create -p <prefix> --file=requirements.txt. I would not use the condaenvironment.ymlas this already dictates the name of the environment. - The hook
67CC
is run using
conda run -p <prefix> <entry> - We will use the
condaexecutable that is available on thePATH.
Note: I would volunteer to implement this once there are some 👍 that the proposal is sound.
Reactions are currently unavailable