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 conda environment.yml as this already dictates the name of the environment.
- The hook is run using
conda run -p <prefix> <entry>
- We will use the
conda executable that is available on the PATH.
Note: I would volunteer to implement this once there are some 👍 that the proposal is sound.
It would be nice to have support for conda in
pre-commitas 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 ascondais language independent.The implementation would work as follows:
conda create -p <prefix> --file=requirements.txt. I would not use the condaenvironment.ymlas this already dictates the name of the environment.conda run -p <prefix> <entry>condaexecutable that is available on thePATH.Note: I would volunteer to implement this once there are some 👍 that the proposal is sound.