forked from v-v-d/carts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 688 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 688 Bytes
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
# Running
start:
docker-compose up --build -d
stop:
docker-compose down
# Formatting
isort:
docker-compose up -d app && docker exec -it carts isort .
black:
docker-compose up -d app && docker exec -it carts black .
format: isort black
# Linting
flake8:
docker-compose up -d app && docker exec -it carts flake8 .
imports:
docker-compose up -d app && docker exec -it carts lint-imports
lint: flake8 imports
# Testing
test:
docker-compose up -d app && \
docker exec -it carts \
pytest $(or $(target), tests) -p no:warnings -vv \
$(or $(foreach var, $(ignore), --ignore=$(var)), --ignore=tests/legacy) \
--cov=app --cov-report=term-missing
check: format lint test