forked from pyvista/pyvistaqt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (48 loc) · 1.55 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Simple makefile to simplify repetitive build env management tasks under posix
BLACK_DIRS ?= ./pyvistaqt/
ISORT_DIRS ?= ./pyvistaqt/*.py
PYCODESTYLE_DIRS ?= ./pyvistaqt/
PYLINT_DIRS ?= ./pyvistaqt/
MYPY_DIRS ?= ./pyvistaqt/
FLAKE8_DIRS ?= ./pyvistaqt/
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/*,./.ci/*"
CODESPELL_IGNORE ?= "ignore_words.txt"
EXTRA_PYCODESTYLE_OPTIONS ?= --ignore="E501,E203,W503"
EXTRA_FLAKE8_OPTIONS ?= --ignore="E501,E203,W503"
all: srcstyle doctest
srcstyle: black isort pylint pycodestyle mypy flake8
doctest: codespell pydocstyle
black:
@echo "Running black"
@black $(BLACK_DIRS)
isort:
@echo "Running isort"
@isort $(ISORT_DIRS)
pylint:
@echo "Running pylint"
@pylint $(PYLINT_DIRS)
pycodestyle:
@echo "Running pycodestyle"
@pycodestyle $(PYCODESTYLE_DIRS) $(EXTRA_PYCODESTYLE_OPTIONS)
mypy:
@echo "Running mypy"
@mypy $(MYPY_DIRS)
flake8:
@echo "Running flake8"
@flake8 $(FLAKE8_DIRS) $(EXTRA_FLAKE8_OPTIONS)
codespell:
@echo "Running codespell"
@codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP) -I $(CODESPELL_IGNORE)
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle pyvistaqt
coverage:
@echo "Running coverage"
@pytest -v --cov pyvistaqt
coverage-xml:
@echo "Reporting XML coverage"
@pytest -v --cov pyvistaqt --cov-report xml
coverage-html:
@echo "Reporting HTML coverage"
@pytest -v --cov pyvistaqt --cov-report html