Settings + fix startup
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
# --- Load Config from pyproject.toml ---
|
||||
export
|
||||
-include .env.make
|
||||
|
||||
# --- Profiles management ---
|
||||
@@ -9,10 +10,12 @@ p ?= full
|
||||
PROFILES_PARAM := COMPOSE_PROFILES=$(p)
|
||||
|
||||
# --- Commands ---
|
||||
DOCKER_COMPOSE := docker compose
|
||||
DOCKER_BUILD := docker build --no-cache \
|
||||
DOCKER_COMPOSE := docker compose \
|
||||
--env-file .env.alfred \
|
||||
--env-file .env.secrets \
|
||||
--env-file .env.make
|
||||
DOCKER_BUILD := DOCKER_BUILDKIT=1 docker build \
|
||||
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
|
||||
--build-arg PYTHON_VERSION_SHORT=$(PYTHON_VERSION_SHORT) \
|
||||
--build-arg UV_VERSION=$(UV_VERSION)
|
||||
|
||||
# --- Phony ---
|
||||
@@ -74,7 +77,7 @@ build-test: .env.make
|
||||
|
||||
# --- Dependencies ---
|
||||
install:
|
||||
@echo "Installing dependencies with $(RUNNER)..."
|
||||
@echo "Installing dependencies with uv..."
|
||||
@uv install \
|
||||
&& echo "✓ Dependencies installed" \
|
||||
|| (echo "✗ Installation failed" && exit 1)
|
||||
@@ -86,7 +89,7 @@ install-hooks:
|
||||
|| (echo "✗ Hook installation failed" && exit 1)
|
||||
|
||||
update:
|
||||
@echo "Updating dependencies with $(RUNNER)..."
|
||||
@echo "Updating dependencies with uv..."
|
||||
@uv update \
|
||||
&& echo "✓ Dependencies updated" \
|
||||
|| (echo "✗ Update failed" && exit 1)
|
||||
@@ -112,7 +115,7 @@ lint:
|
||||
|
||||
format:
|
||||
@echo "Formatting code..."
|
||||
@uv run ruff format . && $(RUNNER) run ruff check --fix . \
|
||||
@uv run ruff format . && uv run ruff check --fix . \
|
||||
&& echo "✓ Code formatted" \
|
||||
|| (echo "✗ Formatting failed" && exit 1)
|
||||
|
||||
@@ -138,8 +141,7 @@ major minor patch: _check-main
|
||||
_ci-dump-config:
|
||||
@echo "image_name=$(IMAGE_NAME)"
|
||||
@echo "python_version=$(PYTHON_VERSION)"
|
||||
@echo "python_version_short=$(PYTHON_VERSION_SHORT)"
|
||||
@echo "runner=$(RUNNER)"
|
||||
@echo "uv_version=$(UV_VERSION)"
|
||||
@echo "service_name=$(SERVICE_NAME)"
|
||||
|
||||
_ci-run-tests:build-test
|
||||
@@ -176,7 +178,7 @@ help:
|
||||
@echo ""
|
||||
@echo "Dev & Quality:"
|
||||
@echo " setup Bootstrap .env and security keys"
|
||||
@echo " install Install dependencies via $(RUNNER)"
|
||||
@echo " install Install dependencies via uv"
|
||||
@echo " test Run pytest suite"
|
||||
@echo " coverage Run tests and generate HTML report"
|
||||
@echo " lint/format Quality and style checks"
|
||||
|
||||
Reference in New Issue
Block a user