A framework for managing and maintaining multi-language pre-commit hooks.
Find a file
Martin Trautmann dbdba3c67f Activate conda environment in pre-commit hook.
Save conda environment that was active during conda install when using
option --hooks-activate-conda. The saved environment will be activated
before calling pre-commit hooks.

Especially on Windows, more and more actions within a conda environment
require the conda environment to be activated. Thus saving just the
python executable is not enough any more.

There is currently one downside of using the option
--hooks-activate-conda. It uses "conda run" which will only show
console output after the run is completed. We have a pull request to
conda open which introduces an option to show interactive console
output in conda run. Once this is approved, it might be ok to make this
option the default behaviour.
2020-02-10 16:56:29 +01:00
pre_commit Activate conda environment in pre-commit hook. 2020-02-10 16:56:29 +01:00
testing Move test to install_uninstall test so environment variables apply 2020-01-16 13:02:20 -08:00
tests Activate conda environment in pre-commit hook. 2020-02-10 16:56:29 +01:00
.coveragerc More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
.gitignore mypy passes with check_untyped_defs 2020-01-12 09:27:04 -08:00
.pre-commit-config.yaml Fix pre-commit in python 3.6.0-3.6.1 2020-01-29 17:40:16 -08:00
.pre-commit-hooks.yaml Remove validate_config hook 2017-08-23 14:06:48 -07:00
azure-pipelines.yml upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
CHANGELOG.md v2.0.1 2020-01-29 17:57:05 -08:00
CONTRIBUTING.md Suggest tox --devenv instead of tox -e venv 2019-06-25 22:46:24 -07:00
LICENSE MIT 2014-06-05 08:57:40 -07:00
README.md Fix badge url 2019-04-28 22:08:21 -07:00
requirements-dev.txt some manual py2 cleanups 2020-01-12 09:27:04 -08:00
setup.cfg v2.0.1 2020-01-29 17:57:05 -08:00
setup.py Migrate setup.py to setup.cfg declarative metadata 2019-02-27 22:12:03 -08:00
tox.ini upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00

Build Status Azure DevOps coverage

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/