feat: Implement automatic version synchronization between .env and pyproject.toml, update docker scripts to get version from .env

This commit is contained in:
William Valentin
2025-08-06 13:37:32 -07:00
parent 8336bbb9db
commit 8dc2fdf69f
8 changed files with 429 additions and 6 deletions

View File

@@ -136,10 +136,19 @@ shell: ## Open a shell in the local environment
requirements: ## Export the requirements to a file
@echo "Exporting requirements to requirements.txt..."
poetry export --without-hashes -f requirements.txt -o requirements.txt
update-version: ## Update version in pyproject.toml from .env file and sync uv.lock
@echo "Updating version in pyproject.toml from .env..."
@$(PYTHON) scripts/update_version.py
update-version-only: ## Update version in pyproject.toml from .env file (skip uv.lock)
@echo "Updating version in pyproject.toml from .env (skipping uv.lock)..."
@$(PYTHON) scripts/update_version.py --skip-uv-lock
commit-emergency: ## Emergency commit (bypasses pre-commit hooks) - USE SPARINGLY
@echo "⚠️ WARNING: Emergency commit bypasses all pre-commit checks!"
@echo "This should only be used in true emergencies."
@read -p "Enter commit message: " msg; \
git add . && git commit --no-verify -m "$$msg"
@echo "✅ Emergency commit completed. Please run tests manually when possible."
.PHONY: install clean reinstall check-env build attach deploy run start stop test lint format shell requirements commit-emergency help
.PHONY: install clean reinstall check-env build attach deploy run start stop test lint format shell requirements update-version update-version-only commit-emergency help