-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
49 lines (33 loc) · 858 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
44
45
46
47
48
49
.PHONY: Makefile
help:
@echo "Read the Makefile plz"
autoformat/black:
black plugin_store/ tests/
autoformat/isort:
isort plugin_store/ tests/
autoformat: autoformat/black autoformat/isort
lint/flake8:
flake8 plugin_store/ tests/
lint/isort:
isort --check --diff plugin_store/ tests/
lint/black:
black --check --diff plugin_store/ tests/
lint/mypy:
PYTHON_PATH=./plugin_store mypy plugin_store/ tests/
lint: lint/black lint/isort lint/flake8 lint/mypy
migrations/apply:
alembic upgrade head
migrations/autogenerate:
alembic revision --autogenerate
migrations/create:
alembic revision
dc/build:
docker compose -f docker-compose.local.yml build
dc/%:
docker compose -f docker-compose.local.yml run -w /app plugin_store make $*
deps/lock:
poetry lock --no-update
deps/upgrade:
poetry lock
test:
SQLALCHEMY_WARN_20=1 pytest ./tests