This pre-commit hook makes sure the environment.yml
in the repo root is up to date with the currently active conda environment
To use it, add the following to your .pre-commit-config.yaml
:
- repo: https://github.com/RoyalTS/sync-conda-env
rev: v0.1.0
hooks:
- id: sync-conda-env
In addition you can add a number of args
to the above:
args: []
where the list can contain
--from-history
includes only the packages directly installed, without their dependencies or build infos--no-builds
excludes build info from the package list--mutate
will update theenvironment.yml