-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
34 lines (25 loc) · 858 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
# Simple makefile to simplify repetitive build env management tasks under posix
PYCODESTYLE_DIRS ?= ./pyvistaqt/
PYLINT_DIRS ?= ./pyvistaqt/
COVERAGE_DIRS ?= ./pyvistaqt/
COVERAGE_HTML_DIRS ?= ./pyvistaqt/
COVERAGE_XML_DIRS ?= ./pyvistaqt/
EXTRA_PYLINT_OPTIONS ?= -rn -sn --rcfile=.pylintrc
EXTRA_PYCODESTYLE_OPTIONS ?= --config=.pycodestyle
all: srcstyle
srcstyle: pylint pycodestyle
pylint:
@echo "Running pylint"
@pylint $(PYLINT_DIRS) $(EXTRA_PYLINT_OPTIONS)
pycodestyle:
@echo "Running pycodestyle"
@pycodestyle $(PYCODESTYLE_DIRS) $(EXTRA_PYCODESTYLE_OPTIONS)
coverage:
@echo "Running coverage"
@pytest -v --cov $(COVERAGE_DIRS)
coverage-xml:
@echo "Reporting XML coverage"
@pytest -v --cov $(COVERAGE_XML_DIRS) --cov-report xml
coverage-html:
@echo "Reporting HTML coverage"
@pytest -v --cov $(COVERAGE_HTML_DIRS) --cov-report html