-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 836 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
# source code and unit testing
.PHONY: install
install:
python -m pip install --upgrade pip
pip install -r requirements.txt -U
pip install -e . --no-deps
.PHONY: black
black:
black src --line-length=120
black tests --line-length=120
.PHONY: isort
isort:
isort src --profile black --line-length=120
isort tests --profile black --line-length=120
.PHONY: flake8
flake8:
flake8 src --count --show-source --statistics
.PHONY: mypy
mypy:
mypy --ignore-missing-imports src
.PHONY: test-format
test-format:
make black
make isort
make flake8
make mypy
.PHONY: test-unit
test-unit:
pytest tests/unit/
# containerization and integration testing
.PHONY: docker-build
docker-build:
docker build -t coinbase-producer .
.PHONY: test-integration
test-integration:
pytest tests/integration/
# chart packaging and publishing