22 lines
494 B
Makefile
22 lines
494 B
Makefile
.PHONY: install dev lint test build deploy
|
|
|
|
install:
|
|
python3 -m venv .venv
|
|
. .venv/bin/activate && pip install --upgrade pip && pip install -r requirements-dev.txt
|
|
|
|
dev:
|
|
. .venv/bin/activate && python -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
|
|
|
lint:
|
|
. .venv/bin/activate && ruff check app tests scripts
|
|
. .venv/bin/activate && black --check app tests scripts
|
|
|
|
test:
|
|
. .venv/bin/activate && pytest
|
|
|
|
build: lint
|
|
docker build -t vault-dash .
|
|
|
|
deploy:
|
|
./scripts/deploy.sh
|