-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (47 loc) · 1.13 KB
/
Makefile
File metadata and controls
65 lines (47 loc) · 1.13 KB
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
.DEFAULT_GOAL := help
.PHONY: help tests
SHELL := /bin/bash
# General Commands
help:
cat Makefile
create_venv:
sh scripts/run_app.sh create_venv
# Install dependencies
install:
pip install -r requirements.txt
# Install development dependencies
install-dev:
pip install -r requirements-dev.txt
# Run tests
test: install
pytest tests --junitxml=report.xml
# Development Commands
lint: install
prospector
types: install
mypy .
coverage: install
coverage run -m unittest discover tests
coverage report
format: install
yapf -i *.py **/*.py **/**/*.py
format_check: install
yapf --diff *.py **/*.py **/**/*.py
pycodestyle: install
pycodestyle
qa: lint types test format_check pycodestyle
# Clean build artifacts
clean:
rm -rf __pycache__ .pytest_cache .mypy_cache .coverage report.xml
# Docker Commands
docker-build:
docker-compose build
docker-up:
docker-compose up
docker-down:
docker-compose down
# Application Specific Commands
run:
sh scripts/run_app.sh run
requirements:
sh scripts/run_app.sh requirements