-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
69 lines (37 loc) · 869 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: release test annotate
test-debug:
rm debug* && DEBUG=1 pytest tests/test_v3.py
artifacts: test
python -m build
prepforbuild:
pip install build
build:
python -m build
test-release:
twine upload --repository testpypi dist/*
release:
twine upload --repository pypi dist/*
test:
pytest tests/
init:
pip install -r requirements.txt
test-v:
pytest -v
test-cov-unit:
pytest --cov-report html --cov=openapidocs tests
test-cov:
pytest --cov-report html --cov=openapidocs
lint: check-flake8 check-isort check-black
check-flake8:
@echo "$(BOLD)Checking flake8$(RESET)"
@flake8 . 2>&1
check-isort:
@echo "$(BOLD)Checking isort$(RESET)"
@isort --check-only . 2>&1
check-black:
@echo "$(BOLD)Checking black$(RESET)"
@black --check . 2>&1
format:
@echo "$(BOLD)Formatting code 🧹 🧼$(RESET)"
@black . 2>&1
@isort . 2>&1