chore: enforce linting as part of build
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: install dev test build deploy
|
||||
.PHONY: install dev lint test build deploy
|
||||
|
||||
install:
|
||||
python3 -m venv .venv
|
||||
@@ -7,10 +7,14 @@ install:
|
||||
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:
|
||||
build: lint
|
||||
docker build -t vault-dash .
|
||||
|
||||
deploy:
|
||||
|
||||
Reference in New Issue
Block a user