-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (48 loc) · 1.16 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
# Makefile
.PHONY: install update ipython clean test pflake8 fmt lint watch docs docs-serve build publish code-coverage
install:
@poetry install
update:
@poetry update
test:
@poetry run pytest -s --forked
code-coverage:
@poetry run pytest --cov-report html --cov .
watch:
#@poetry run ptw
@ls **/*.py | entr pytest --forked
ipython:
@poetry run ipython
lint:
@poetry run pflake8
fmt:
@poetry run isort dundie tests integration
@poetry run black dundie tests integration
clean: ## Clean unused files.
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name '__pycache__' -exec rm -rf {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
@rm -rf .cache
@rm -rf .pytest_cache
@rm -rf .mypy_cache
@rm -rf build
@rm -rf dist
@rm -rf *.egg-info
@rm -rf htmlcov
@rm -rf .tox/
@rm -rf docs/_build
docs:
@mkdocs build --clean
docs-serve:
@mkdocs serve
build:
@poetry build
publish:
@poetry publish
coverage-report:
@poetry run coverage report
citest:
@poetry run py.test -v --cov-config .coveragerc --cov=dundie -l tests/ --junitxml=junit/test-results.xml
@poetry run coverage xml
make coverage-report