-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (32 loc) · 1018 Bytes
/
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
pre-commit:
@pre-commit run --color=always --all-files
pre-commit-verify:
@docker compose -f local.yml run --rm tests bash -c \
"git config --global --add safe.directory /app && \
git init && \
git add . && \
pre-commit run --color=always --show-diff-on-failure --all-files"
tests:
@docker compose -f local.yml run --rm tests pytest
tests-ssh:
@docker compose -f local.yml run tests bash
tests-shell:
@docker compose -f local.yml run --rm tests ipython
coverage:
@docker compose -f local.yml run --rm tests bash -c \
"coverage run -m pytest && \
coverage report && \
coverage html"
open htmlcov/index.html
coverage-95:
@docker compose -f local.yml run --rm tests coverage report --fail-under=95
benchmark:
@sh benchmarks/endpoints.sh benchmarks/data.json
reset-data:
@docker exec -it exchange-radar-redis redis-cli FLUSHALL
save-data:
@docker exec -it exchange-radar-redis redis-cli BGSAVE
redis-cli:
@docker exec -it exchange-radar-redis redis-cli
create-env-file:
@cat .envs/.local/.* > .env