forked from ansys/pydpf-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 1.08 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
# Simple makefile to simplify repetitive build env management tasks under posix
CODESPELL_DIRS ?= ./
CODESPELL_SKIP ?= "*.pyc,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/build/*,./docs/images/*,./dist/*,*~,.hypothesis*,./docs/source/examples/*,*cover,*.dat,*.mac,\#*,build,./ansys/dpf/core/raw_operators.py,./run_client.bat,./docker/v211"
CODESPELL_IGNORE ?= "ignore_words.txt"
all: doctest
doctest: codespell
codespell:
@echo "Running codespell"
@codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP) -I $(CODESPELL_IGNORE)
flake8:
@echo "Running flake8"
@flake8 .
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle ansys.dpf.core
doctest-modules:
@echo "Runnnig module doctesting"
pytest -v --doctest-modules ansys.dpf.core
coverage:
@echo "Running coverage"
@pytest -v --cov ansys.dpf.core
coverage-xml:
@echo "Reporting XML coverage"
@pytest -v --cov ansys.dpf.core --cov-report xml
coverage-html:
@echo "Reporting HTML coverage"
@pytest -v --cov ansys.dpf.core --cov-report html