2025-02-24 20:22:59 +01:00
|
|
|
.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:
|
2025-03-04 08:16:25 +01:00
|
|
|
PGPASSWORD=for-testing psql -h localhost -p 5432 -U postgres -E
|
2025-02-24 20:22:59 +01:00
|
|
|
|
|
|
|
profile.html: $(wildcard src/**/*.py)
|
|
|
|
pyinstrument -r html -o profile.html --from-path harlequin -a postgres "postgresql://postgres:for-testing@localhost:5432/postgres"
|