-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
48 lines (35 loc) · 925 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
.PHONY: install update shell format lint test sec export configs upgrade run migrate post-test task
install:
@uv install
update:
@uv update
shell:
@uv shell
format:
# @blue app/
# @blue tests/
@ruff check . --fix
lint:
# @blue app/ tests/ --check
@ruff check app/entities
@ruff check app/cart/services.py
@ruff check app/catalog/services.py
@ruff check app/payment/services.py
@ruff check app/report/services.py
@ruff check app/user/services.py
@ruff check app/infra/endpoints
# @ruff check tests/ --ignore S101
test:
@uv run FORCE_ENV_FOR_DYNACONF=testing pytest -s tests/ -x --cov=fast_ecommerce -vv
post_test:
@coverage html
configs:
dynaconf -i src.config.settings list
upgrade:
@uv run alembic upgrade head
run:
@uv run uvicorn main:app --reload --host 0.0.0.0 --port 8001
migrate:
@uv run alembic revision --autogenerate
task:
@uv run taskiq scheduler app.infra.scheduler:scheduler