-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
63 lines (51 loc) · 1.19 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
.PHONY: all test format clean clean-tox clean-pyc clean-docs clean-build clean-test docs build
all: format lint test docs build
@echo "All passed"
build:
@TOXENV=build tox
clean:
-@rm -fr tests/htmlreport/
-@rm -fr tests/htmlcov/
-@rm -fr build/
-@rm -fr dist/
-@rm -fr src/*.egg
-@rm -fr src/*.egg-info
-@rm -fr docs/build/*
-@rm -fr docs/source/plantuml-images/
-@rm -fr docs/source/README.rst
-@rm -fr .tox/
-@rm -fr .coverage
-@rm -fr .mypy_cache/
-@rm -fr .pytest_cache/
-@find . -name '*.pyc' -delete
-@find . -name '*.pyo' -delete
-@find . -name '*~' -delete
-@find . -name '__pycache__' -delete
lint:
@TOXENV=flake8,mypy,bandit tox
test:
@TOXENV=py tox
format:
@TOXENV=isort,black tox
clean-test:
-@rm -fr tests/htmlreport/
-@rm -fr tests/htmlcov/
-@rm -fr .pytest_cache/
clean-build:
-@rm -fr build/
-@rm -fr dist/
-@rm -fr src/*.egg
-@rm -fr src/*.egg-info
clean-pyc:
-@find . -name '*.pyc' -delete
-@find . -name '*.pyo' -delete
-@find . -name '*~' -delete
-@find . -name '__pycache__' -delete
clean-docs:
-@rm -fr docs/build/*
-@rm -fr docs/source/plantuml-images/
-@rm -fr docs/source/README.rst
clean-tox:
-@rm -rf .tox/
docs:
@TOXENV=docs tox