-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (50 loc) · 1.46 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
65
66
67
68
69
70
SHELL:=/bin/bash -O globstar
.SHELLFLAGS = -ec
.PHONY: localstack localstack-down testdata
install:
poetry install --sync --all-extras
install-poetry:
python3.8 -m pip install --upgrade pip
python3.8 -m pip install poetry==1.4.2
poetry self add "poetry-dynamic-versioning[plugin]"
update:
poetry update
mypy:
poetry run mypy .
pylint:
poetry run pylint .
pylint-ci:
poetry run pylint --output-format=parseable --score=no .
black-check:
poetry run black . --check
isort-check:
poetry run isort . -c
black:
poetry run isort .
poetry run black .
coverage-cleanup:
rm -f .coverage* || true
coverage-ci-test:
poetry run coverage run -m pytest --color=yes -v --junit-xml=./reports/junit/output.xml
coverage-report:
@poetry run coverage report; \
poetry run coverage xml;
coverage: coverage-cleanup testdata coverage-test coverage-report
coverage-test:
poetry run coverage run -m pytest
coverage-ci: coverage-cleanup testdata coverage-ci-test coverage-report
clean:
rm -rf ./dist || true
rm -rf ./reports || true
find . -type d -name '.mypy_cache' | xargs rm -rf || true
find . -type d -name '.pytest_cache' | xargs rm -rf || true
find . -type d -name '__pycache__' | xargs rm -rf || true
find . -type f -name '.coverage' | xargs rm -rf || true
purge: clean
rm -rf .venv || true
localstack:
cd localstack && docker compose up -d
localstack-down:
cd localstack && docker compose down --remove-orphans || true
testdata:
tar xf ./testdata/testdata.tgz -C /tmp