.PHONY: help deploy_prod_streamlit run_streamlit_locally fmt lint
.DEFAULT_GOAL := help

help:
	@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

deploy_prod_streamlit: ## Deploy Streamlit app to PROD
	cd streamlit_app && poetry run snow streamlit deploy --replace --connection=artist_roster --schema=PROD

run_streamlit_locally: ## Run Streamlit app locally
	poetry run streamlit run streamlit_app/main.py

fmt: ## Run code formatters
	poetry run ruff check --fix
	poetry run ruff format

lint: ## Run code linters
	poetry run mypy
	poetry run ruff check
	poetry run ruff format --check
