Spaces:
Sleeping
Sleeping
File size: 1,093 Bytes
28c297e dd4f6e7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | #!/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
|