-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (44 loc) · 1.35 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
### docker commands - START ###
build:
docker-compose build
build-no-cache:
docker-compose build --no-cache
up:
docker-compose up -d
up-attached:
docker-compose up
down:
docker-compose down
down-remove-volumes:
docker-compose down -v
show-logs-all:
docker-compose logs
# show-logs svc=db
show-logs:
docker-compose logs $(svc)
run-cdk-container:
docker-compose run --rm cdk bash
# docker-compose run --rm cdk sh -c "cdk init --language python"
deploy-cdk:
docker-compose run --rm cdk sh -c "cdk deploy"
### docker commands - END ###
### linting / test coverege / formating commands - START ###
FILES = ../lambda/lambda_function.py ../lambda/extras app.py cdk/cdk_stack.py tests
flake8:
docker-compose run --rm cdk sh -c "flake8 $(FILES)"
black-check:
docker-compose run --rm cdk sh -c "black --check $(FILES)"
black-diff:
docker-compose run --rm cdk sh -c "black --diff $(FILES)"
black:
docker-compose run --rm cdk sh -c "black $(FILES)"
isort-check:
docker-compose run --rm cdk sh -c "isort $(FILES) --check-only"
isort-diff:
docker-compose run --rm cdk sh -c "isort $(FILES) --diff"
isort:
docker-compose run --rm cdk sh -c "isort $(FILES)"
# runnign combined - black - isort - flake8
format:
docker-compose run --rm cdk sh -c "black $(FILES) && isort $(FILES) && flake8 $(FILES)"
### linting / test coverege / formating commands - END ###