Daniel Ecer
Switched to using Docker
dd4f6e7
#!/usr/bin/make -f
VENV = .venv
UV = uv
PIP = $(VENV)/bin/pip
PYTHON = $(VENV)/bin/python
UV_RUN = $(UV) run --no-sync
PYTEST_WATCH_MODULES =
ARGS =
venv-clean:
@if [ -d "$(VENV)" ]; then \
rm -rf "$(VENV)"; \
fi
venv-create:
$(UV) venv
dev-install:
$(UV) sync --frozen --all-extras --dev
dev-upgrade-all:
$(UV) sync --upgrade
dev-venv: venv-create dev-install
dev-flake8:
$(UV_RUN) -m flake8 fngradio_various_api_mcp tests
dev-pylint:
$(UV_RUN) -m pylint fngradio_various_api_mcp tests
dev-mypy:
$(UV_RUN) -m mypy --check-untyped-defs fngradio_various_api_mcp tests
dev-lint: dev-flake8 dev-pylint dev-mypy
dev-unit-tests:
$(UV_RUN) -m pytest -vv
dev-watch:
$(UV_RUN) -m pytest_watcher \
--runner=$(VENV)/bin/python \
. \
-m pytest -vv $(PYTEST_WATCH_MODULES)
dev-test: dev-lint dev-unit-tests
dev-start:
$(UV_RUN) -m fngradio_various_api_mcp
docker-build:
docker compose build
docker-start:
docker compose up -d app --wait
docker-logs:
docker compose logs -f
docker-stop:
docker compose down
docker-clean:
docker compose down --volumes