SHELL :=/bin/bash .PHONY: clean check setup .DEFAULT_GOAL=help VENV_DIR = .venv PYTHON_VERSION = python3.11 check: # Ruff check @ruff check . @echo "✅ Check complete!" fix: # Fix auto-fixable linting issues @ruff check app.py --fix clean: # Clean temporary files @rm -rf __pycache__ .pytest_cache @find . -name '*.pyc' -exec rm -r {} + @find . -name '__pycache__' -exec rm -r {} + @rm -rf build dist @find . -name '*.egg-info' -type d -exec rm -r {} + run: # Run the application @streamlit run app.py setup: # Initial project setup @echo "Creating virtual env at: $(VENV_DIR)"s @$(PYTHON_VERSION) -m venv $(VENV_DIR) @echo "Installing dependencies..." @source $(VENV_DIR)/bin/activate && pip install -r requirements/requirements-dev.txt && pip install -r requirements/requirements.txt @echo -e "\n✅ Done.\n🎉 Run the following commands to get started:\n\n ➡️ source $(VENV_DIR)/bin/activate\n ➡️ make run\n" help: # Show this help @egrep -h '\s#\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?# "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'