-
Notifications
You must be signed in to change notification settings - Fork 55
/
Makefile
79 lines (68 loc) · 1.73 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = docs/_build
default:
@echo Type: make rcheck, make html, or make clean
html:
$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
open docs/_build/index.html
notecheck:
make clean
python -m pytest --verbose --notebooks tests/test_all_notebooks.py
rm -rf __pycache__
rstcheck:
-rstcheck README.rst
-rstcheck CHANGELOG.rst
-rstcheck docs/index.rst
-rstcheck --ignore-directives automodapi docs/miepython.rst
lintcheck:
-pylint miepython/miepython.py
-pylint miepython/miepython_nojit.py
-pylint miepython/__init__.py
-pylint tests/test_all_examples.py
-pylint tests/test_all_notebooks.py
-pylint tests/test_jit.py
-pylint tests/test_nojit.py
-pylint docs/conf.py
doccheck:
-ruff check miepython/miepython.py
-ruff check miepython/miepython_nojit.py
-ruff check miepython/__init__.py
-ruff check tests/test_all_examples.py
-ruff check tests/test_all_notebooks.py
-ruff check tests/test_jit.py
-ruff check tests/test_nojit.py
rcheck:
make notecheck
make rstcheck
make lintcheck
make doccheck
- flake8 .
pyroma -d .
check-manifest
make html
make test
test:
python -m pytest tests/test_nojit.py
python -m pytest tests/test_jit.py
python -m pytest tests/test_all_examples.py
clean:
rm -rf dist
rm -rf miepython.egg-info
rm -rf miepython/__pycache__
rm -rf miepython/examples/__pycache__
rm -rf docs/.DS_Store
rm -rf docs/api
rm -rf docs/_build
rm -rf docs/.ipynb_checkpoints
rm -rf docs/.pytest_cache
rm -rf tests/__pycache__
rm -rf tests/.ipynb_checkpoints
rm -rf 04_plot.png
rm -rf .pytest_cache
rm -rf build
realclean:
make clean
.PHONY: clean html test realclean \
rcheck doccheck lintcheck rstcheck notecheck