Окружение для разработчика

This commit is contained in:
2025-10-15 10:25:35 +03:00
parent 772804bda0
commit a336682ed2
9 changed files with 2386 additions and 1 deletions
+29
View File
@@ -1,4 +1,8 @@
SHELL := /bin/bash
UV := uv
PYTHON_VERSION := 3.11
.PHONY: up down airflow-init logs gp-psql ddl-gp dev-setup dev-sync dev-lock test lint fmt clean-venv
up:
docker compose -f docker-compose.yml up -d
@@ -17,3 +21,28 @@ gp-psql:
ddl-gp:
docker compose -f docker-compose.yml exec greenplum bash -c "su - gpadmin -c '/usr/local/greenplum-db/bin/psql -d gpadmin -f /sql/ddl_gp.sql'"
dev-setup:
$(UV) python install $(PYTHON_VERSION)
$(UV) python pin $(PYTHON_VERSION)
$(UV) sync
dev-sync:
$(UV) sync
dev-lock:
$(UV) lock --upgrade
test:
$(UV) run pytest -q
lint:
$(UV) run black --check airflow tests
$(UV) run isort --check-only airflow tests
fmt:
$(UV) run black airflow tests
$(UV) run isort airflow tests
clean-venv:
python -c "import shutil; shutil.rmtree('.venv', ignore_errors=True)"