Spaces:
Sleeping
Sleeping
Download Makefile from YuraBodnar/ChokePointAI: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/YuraBodnar/ChokePointAI/resolve/main/Makefile
- Command line
-
hf download hf://spaces/YuraBodnar/ChokePointAI/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/YuraBodnar/ChokePointAI/resolve/main/Makefile
655 Bytes
| .PHONY: setup dev test lint typecheck fmt docker clean | |
| setup: | |
| uv sync --all-extras --dev && uv run pre-commit install | |
| @test -f .env || cp .env.example .env | |
| dev: | |
| uv run uvicorn chokepoint.api.main:app --reload --port 7860 | |
| test: | |
| uv run pytest --cov=chokepoint --cov-report=term-missing | |
| lint: | |
| uv run ruff check . && uv run ruff format --check . | |
| typecheck: | |
| uv run mypy src | |
| fmt: | |
| uv run ruff check --fix . && uv run ruff format . | |
| docker: | |
| @test -f .env || cp .env.example .env | |
| docker build -t chokepoint-ai . && \ | |
| docker run --rm -p 7860:7860 --env-file .env chokepoint-ai | |
| clean: | |
| rm -rf .pytest_cache .mypy_cache .ruff_cache htmlcov .coverage | |