-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
28 lines (21 loc) · 932 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-21s\033[0m %s\n", $$1, $$2}'
setup-venv: ## Setup a local venv
python3 -m venv venv
install-deps: ## Install python dependencies for development
pip install -r requirements.txt -r requirements-dev.txt
start: ## Start a production like server
uvicorn --host=0.0.0.0 --port=8000 app_distribution_server.app:app
dev: ## Start the local developent server
uvicorn --host=0.0.0.0 --port=8000 app_distribution_server.app:app --reload
lint: ## Lint the code according to the standards
ruff check .
ruff format --check .
pyright .
format: ## Format the code according to the standards
ruff check --fix .
ruff format .
lock-deps: ## Lock dependencies to requirements.txt
pip-compile --strip-extras requirements-dev.in > requirements-dev.txt
pip-compile --strip-extras requirements.in > requirements.txt