mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
add make shortcuts for test, run, and environment setup
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
.PHONY: setup dev-server cli-install test db-migrate lint clean
|
||||||
|
|
||||||
|
setup:
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -e cli/
|
||||||
|
|
||||||
|
dev-server:
|
||||||
|
uvicorn app.main:app --reload
|
||||||
|
|
||||||
|
cli-install:
|
||||||
|
pip install -e cli/
|
||||||
|
|
||||||
|
test:
|
||||||
|
pytest tests/ -v
|
||||||
|
|
||||||
|
db-migrate:
|
||||||
|
alembic upgrade head
|
||||||
|
|
||||||
|
lint:
|
||||||
|
pip install -q black ruff
|
||||||
|
black --check app/ cli/ tests/
|
||||||
|
ruff check app/ cli/ tests/
|
||||||
|
|
||||||
|
clean:
|
||||||
|
find . -type d -name "__pycache__" -exec rm -rf {} +
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
Reference in New Issue
Block a user