8000 Support for conda as a language · Issue #1204 · pre-commit/pre-commit · GitHub
[go: up one dir, main page]

Skip to content

Support for conda as a language #1204

@xhochy

Description

@xhochy

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 67CC 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0