HOOKS_VENV=hooksvenv

$(HOOKS_VENV)/bin/activate:
	python3.10 -m venv $(HOOKS_VENV)
	$(HOOKS_VENV)/bin/python3 -m pip install -U pip yapf isort


#  Git Hooks

#   hooks/enable - enable pre-commit hook and setup environment
.PHONY: hooks/enable
hooks/enable: $(HOOKS_VENV)/bin/activate
	cp hooks/* .git/hooks/
	chmod +x .git/hooks/pre-commit

#   hooks/disable - disable pre-commit hook and clean up environment
.PHONY: hooks/disable
hooks/disable:
	-rm -f .git/hooks/pre-commit
	-rm -rf $(HOOKS_VENV)


include ./step/lambda/Makefile.inc

# Used only for downloading testing image in Jenkins, use makefiles in project directories instead
