In addition to language: script, some people may prefer language: conda. Conda is now a supported language in pre-commit. This would allow dependency management and isolation via conda but probably also require a conda env per repo. Would be an overkill for most projects I think.
Because I think it's totally fine for an end-user repo to use hooks from different hook repos, even one hook repo can host hooks that feature different languages, i.e. it's already possible to use R and Python hooks along each other.
Also, if we would want to distribute hooks via conda, do we need to provide command line executables for them? R packages cannot easily do this compared to Python. And {precommit} must be available on a conda repository such as conda forge I guess because some hooks depend on it directly (don't know how to bring it there).
In addition to
language: script
, some people may preferlanguage: conda
. Conda is now a supported language in pre-commit. This would allow dependency management and isolation via conda but probably also require a conda env per repo. Would be an overkill for most projects I think. Because I think it's totally fine for an end-user repo to use hooks from different hook repos, even one hook repo can host hooks that feature different languages, i.e. it's already possible to use R and Python hooks along each other.Also, if we would want to distribute hooks via conda, do we need to provide command line executables for them? R packages cannot easily do this compared to Python. And {precommit} must be available on a conda repository such as conda forge I guess because some hooks depend on it directly (don't know how to bring it there).
@xhochy maybe you can help clarifying this.