forked from team-ondo/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (14 loc) · 633 Bytes
/
Makefile
File metadata and controls
22 lines (14 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: run test require reset-table seed help
.DEFAULT_GOAL := help
run: ## Run server
uvicorn src.main:app --reload --host 0.0.0.0
test: ## Run test
pytest --color=yes --code-highlight=yes --no-header -v
require: ## Regenerate requirements.txt from pyproject.toml
poetry export --without-hashes --with dev --output requirements.txt
reset-table: ## Recreate tables
poetry run python -m src.migrate_db
seed: ## Seed data
poetry run python -m src.seed_db
help: ## Show help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'