feat: Add test scripts and runner for TheChart application
- Created demo_failing_test.py to demonstrate pre-commit blocking with a failing test. - Added run_tests.py for executing all tests with coverage reporting. - Introduced test.py as a quick test runner for the application, providing coverage reports and user-friendly output.
This commit is contained in:
8
Makefile
8
Makefile
@@ -63,4 +63,10 @@ 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
|
||||
.PHONY: install build attach deploy run start stop test lint format shell requirements help
|
||||
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 build attach deploy run start stop test lint format shell requirements commit-emergency help
|
||||
|
||||
Reference in New Issue
Block a user