-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (34 loc) · 670 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (34 loc) · 670 Bytes
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
.PHONY: setup
setup:
pip install -r requirements.txt
.PHONY: setup-dev
setup-dev:
pip install -r requirements-dev.txt
.PHONY: clean
clean:
rm -rf `find . -name __pycache__ -type d`
find . -name '*~' -exec rm -iv {} +
.PHONY: lint
lint:
flake8 .
.PHONY: format
format:
black .
.PHONY: test
test:
pytest
.PHONY: serve
serve:
flask run
.PHONY: coverage
coverage:
coverage run -m pytest
coverage report
coverage html
.PHONY: help
help:
@echo "clean - remove Python artifacts"
@echo "lint - check style with flake8"
@echo "format - format code with black"
@echo "test - run tests with pytest"
@echo "serve - start the development server with uvicorn"