Spaces:
Sleeping
Sleeping
Download Makefile from gvatsal60/github-test: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/spaces/gvatsal60/github-test/resolve/main/Makefile
- Command line
-
hf download hf://spaces/gvatsal60/github-test/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/gvatsal60/github-test/resolve/main/Makefile
844 Bytes
| # Default target | |
| .DEFAULT_GOAL := help | |
| help: ## Show this help message | |
| @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' | |
| SRC_DIR := src | |
| .PHONY: all sync freeze run test clean | |
| all: clean sync run ## Run clean, sync, and run | |
| sync: ## Sync dependencies with uv | |
| @uv sync --no-cache --quiet | |
| freeze: sync ## Export requirements.txt | |
| @uv export --quiet --no-header --no-annotate --no-hashes --format requirements.txt --output-file requirements.txt | |
| run: sync ## Run the Streamlit app | |
| @uv run --directory $(SRC_DIR) streamlit run app.py --browser.gatherUsageStats false | |
| test: sync ## Run tests | |
| @echo "No tests available currently." | |
| # @uv test | |
| clean: ## Clean caches and venv | |
| @rm -rf __pycache__ .pytest_cache .mypy_cache .venv | |
| @uv clean --quiet --force | |