-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
50 lines (34 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: format test
prep: test format generate-requirements
format:
poetry run black buddy/ tests/ *.py
ngrok:
ngrok http 4747
run-dev:
poetry run ./run-dev.sh
test:
poetry run python -m pytest -sv tests/
cov:
poetry run python -m pytest --cov-report html --cov-report term --cov=. -sv tests/
# wslview for linux on windows - on Mac you can use 'open', on linux 'xdg-open'
wslview htmlcov/index.html || true
typecheck:
poetry run python -m mypy --no-warn-unused-ignores buddy/ # app.py
generate-requirements:
poetry export -o requirements.txt --without-hashes
up:
docker compose up
up-build:
docker compose up --build
setup-precommit-hooks:
poetry run pre-commit install
shell-dev:
fly ssh console -a workflow-buddy-dev
deploy-dev:
fly deploy -a workflow-buddy-dev -c fly.dev.toml
deploy-dev-local:
fly deploy -a workflow-buddy-dev -c fly.dev.toml --local-only
deploy-prod:
fly deploy -a workflow-buddy -c fly.prod.toml
deploy-prod-local:
fly deploy -a workflow-buddy -c fly.prod.toml --local-only