1
0
Fork 0
harlequin-postgres/Makefile
Daniel Baumann 80be6b192c
Merging upstream version 1.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-04 08:16:25 +01:00

25 lines
524 B
Makefile

.PHONY: check
check:
ruff format .
ruff check . --fix
mypy
pytest
.PHONY: init
init:
docker-compose up -d
.PHONY: clean
clean:
docker-compose down
.PHONY: serve
serve:
harlequin -P None -a postgres "postgresql://postgres:for-testing@localhost:5432/postgres"
.PHONY: psql
psql:
PGPASSWORD=for-testing psql -h localhost -p 5432 -U postgres -E
profile.html: $(wildcard src/**/*.py)
pyinstrument -r html -o profile.html --from-path harlequin -a postgres "postgresql://postgres:for-testing@localhost:5432/postgres"