feat: Implement automatic version synchronization between .env and pyproject.toml, update docker scripts to get version from .env
This commit is contained in:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user