-
Notifications
You must be signed in to change notification settings - Fork 43
/
Makefile
29 lines (21 loc) · 875 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
# 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,*.css,*.json,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./doc/_build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*.mypy_cache/*,*cover,./tests/tinypages/_build/*,*/_autosummary/*,htmlcov/"
CODESPELL_IGNORE ?= "ignore_words.txt"
stylecheck: codespell lint
codespell:
@echo "Running codespell"
@codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP)
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle PVGeo --match='(?!coverage).*.py'
doctest:
@echo "Runnnig module doctesting"
pytest -v --doctest-modules PVGeo
lint:
@echo "Linting with flake8"
flake8 .
format:
@echo "Formatting"
black .
isort .