Skip to content

Commit 9c00239

Browse files
authored
fix stack prefix and pip update (#417)
1 parent 942fad7 commit 9c00239

File tree

9 files changed

+238
-159
lines changed

9 files changed

+238
-159
lines changed

Makefile_windows

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
.PHONY: dev lint complex coverage pre-commit yapf sort deploy destroy deps unit integration e2e pipeline-tests docs lint-docs
2+
3+
4+
5+
dev:
6+
pipenv install -d
7+
make deps
8+
9+
lint:
10+
@echo "Running flake8"
11+
flake8 service/* cdk/* tests/* docs/examples/* --exclude patterns='build,cdk.json,cdk.context.json,.yaml'
12+
13+
complex:
14+
@echo "Running Radon"
15+
radon cc -e 'tests/*,cdk.out/*' .
16+
@echo "Running xenon"
17+
xenon --max-absolute B --max-modules A --max-average A -e 'tests/*,.venv/*,cdk.out/*' .
18+
19+
sort:
20+
isort ${PWD}
21+
22+
pre-commit:
23+
pre-commit run -a --show-diff-on-failure
24+
25+
deps:
26+
pipenv requirements --dev > dev_requirements.txt
27+
pipenv requirements > lambda_requirements.txt
28+
29+
unit:
30+
pytest tests\unit --cov-config=.coveragerc --cov=service --cov-report xml
31+
32+
integration:
33+
pytest tests/integration --cov-config=.coveragerc --cov=service --cov-report xml
34+
35+
e2e:
36+
pytest tests/e2e --cov-config=.coveragerc --cov=service --cov-report xml
37+
38+
pr: deps yapf sort pre-commit complex lint lint-docs unit integration e2e
39+
40+
yapf:
41+
yapf -i -vv --style=./.style --exclude=.venv --exclude=.build --exclude=cdk.out --exclude=.git -r .
42+
43+
pipeline-tests:
44+
pytest tests/unit tests/integration --cov-config=.coveragerc --cov=service --cov-report xml
45+
46+
deploy:
47+
make deps
48+
if not exist ".build\lambdas" mkdir ".build\lambdas"
49+
xcopy /s /e /y service .build\lambdas
50+
if not exist ".build\common_layer" mkdir ".build\common_layer"
51+
pipenv requirements > .build\common_layer\requirements.txt
52+
cdk deploy --app="python cdk\my_service\app.py" --require-approval=never
53+
54+
destroy:
55+
cdk destroy --app="python ${PWD}\cdk\my_service\app.py" --force
56+
57+
docs:
58+
mkdocs serve
59+
60+
lint-docs:
61+
docker run -v ${PWD}:/markdown 06kellyjac/markdownlint-cli --fix "docs"

0 commit comments

Comments
 (0)