Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Self-Documenting Command to Makefile and Tidy It A Bit #909

Closed
louismagowan opened this issue Aug 5, 2024 · 1 comment · Fixed by #910
Closed

Add Self-Documenting Command to Makefile and Tidy It A Bit #909

louismagowan opened this issue Aug 5, 2024 · 1 comment · Fixed by #910

Comments

@louismagowan
Copy link
Contributor

Something like this

#################################################################################
# GLOBALS                                                                       #
#################################################################################

PACKAGE_DIR = pymc_marketing

#################################################################################
# COMMANDS                                                                      #
#################################################################################

.PHONY: install-deps authenticate-dvc pull-data-dvc launch lint lint-fix format help

install-deps:  ## install dependencies locally
	poetry install

#################################################################################
# Self Documenting Commands                                                     #
#################################################################################

.DEFAULT_GOAL := help

help: ## Show this help message
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
	awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'

@louismagowan
Copy link
Contributor Author

Am tackling this now in a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants