-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile
39 lines (32 loc) · 1.2 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
check:
pycodestyle docformatter.py setup.py
pydocstyle docformatter.py setup.py
pylint docformatter.py setup.py
check-manifest
rstcheck --report=1 README.rst
docformatter docformatter.py setup.py
python -m doctest docformatter.py
coverage.unit:
@echo -e "\n\t\033[1;32mRunning docformatter unit tests with coverage ...\033[0m\n"
COVERAGE_FILE=".coverage.unit" py.test $(TESTOPTS) -m unit \
--cov-config=pyproject.toml --cov=docformatter --cov-branch \
--cov-report=term $(TESTFILE)
coverage.system:
@echo -e "\n\t\033[1;32mRunning docformatter system tests with coverage ...\033[0m\n"
COVERAGE_FILE=".coverage.system" py.test $(TESTOPTS) -m system \
--cov-config=pyproject.toml --cov=docformatter --cov-branch \
--cov-report=term $(TESTFILE)
coverage:
@echo -e "\n\t\033[1;32mRunning full docformatter test suite with coverage ...\033[0m\n"
@coverage erase
$(MAKE) coverage.unit
$(MAKE) coverage.system
@coverage combine .coverage.unit .coverage.system
@coverage xml --rcfile=pyproject.toml
open_coverage: coverage
@coverage html
@python -m webbrowser -n "file://${PWD}/htmlcov/index.html"
mutant:
@mut.py -t docformatter -u test_docformatter -mc
readme:
@restview --long-description --strict