forked from ansys/pymapdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 1.13 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
# 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,./doc/build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*cover,*.dat,*.mac,\#*,build,./docker/mapdl/v*,./factory/*,./ansys/mapdl/core/mapdl_functions.py,PKG-INFO,*.mypy_cache/*,./docker/mapdl/*"
CODESPELL_IGNORE ?= "ignore_words.txt"
codestyle: codespell flake8
codespell:
@echo "Running codespell"
@codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP) -I $(CODESPELL_IGNORE)
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle ansys.mapdl.core
doctest-modules:
@echo "Runnnig module doctesting"
pytest -v --doctest-modules ansys.mapdl.core
coverage:
@echo "Running coverage"
@pytest -v --cov ansys.mapdl.core
coverage-xml:
@echo "Reporting XML coverage"
@pytest -v --cov ansys.mapdl.core --cov-report xml
coverage-html:
@echo "Reporting HTML coverage"
@pytest -v --cov ansys.mapdl.core --cov-report html
flake8:
@echo "Running flake8"
@flake8 .