custom pre-commit hooks
This is a pre-commit-hook to check that you are inside the right virtualenv Otherwise, you should not run the rest of the hooks.
pipenv shell
python -m hooks.ensure_venv
exit
python -m hooks.ensure_venv
repos:
- repo: https://github.com/hectorcanto/myhooks
rev: 0.1.0
hooks:
- id: ensure-venv