forked from pyvista/pyvista
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 959 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
# Simple makefile to simplify repetitive build env management tasks under posix
CODESPELL_DIRS ?= ./
CODESPELL_SKIP ?= "*.pyc,*.txt,*.gif,*.png,*.jpg,*.ply,*.vtk,*.vti,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/_build/*,./docs/images/*,./dist/*,*~,.hypothesis*,./docs/examples/*"
CODESPELL_IGNORE ?= "ignore_words.txt"
all: doctest
doctest: codespell pydocstyle
codespell:
@echo "Running codespell"
@codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP) -I $(CODESPELL_IGNORE)
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle pyvista
doctest-modules:
@echo "Runnnig module doctesting"
pytest -v --doctest-modules pyvista
coverage:
@echo "Running coverage"
@pytest -v --cov pyvista
coverage-xml:
@echo "Reporting XML coverage"
@pytest -v --cov pyvista --cov-report xml
coverage-html:
@echo "Reporting HTML coverage"
@pytest -v --cov pyvista --cov-report html