-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
84 lines (73 loc) · 1.8 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
80
81
82
83
84
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = docs/_build
default:
@echo Type: make rcheck, make html, or make clean
check:
-pyroma -d .
-check-manifest
make lintcheck
make doccheck
make notecheck
rstcheck:
-rstcheck README.rst
-rstcheck CHANGELOG.rst
-rstcheck docs/index.rst
-rstcheck docs/changelog.rst
-rstcheck docs/jones-or-mueller.rst
-rstcheck --ignore-directives automodule docs/pypolar.rst
lint:
-pylint pypolar/gaertner.py
-pylint pypolar/ellipsometry.py
-pylint pypolar/fresnel.py
-pylint pypolar/jones.py
-pylint pypolar/mueller.py
-pylint pypolar/sym_fresnel.py
-pylint pypolar/sym_jones.py
-pylint pypolar/sym_mueller.py
-pylint pypolar/visualization.py
doccheck:
-pydocstyle pypolar/gaertner.py
-pydocstyle pypolar/ellipsometry.py
-pydocstyle pypolar/fresnel.py
-pydocstyle pypolar/jones.py
-pydocstyle pypolar/mueller.py
-pydocstyle pypolar/sym_fresnel.py
-pydocstyle pypolar/sym_jones.py
-pydocstyle pypolar/sym_mueller.py
-pydocstyle pypolar/visualization.py
notecheck:
make clean
pytest --verbose tests/test_all_notebooks.py
html:
cd docs && python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build
open docs/_build/index.html
test:
pytest tests/test_jones.py
pytest tests/test_stokes.py
rcheck:
make clean
make lintcheck
make doccheck
make html
make test
-pyroma -d .
-check-manifest
make notecheck
clean:
rm -rf __pycache__
rm -rf .pytest_cache
rm -rf dist
rm -rf build
rm -rf pypolar.egg-info
rm -rf pypolar/__pycache__
rm -rf pypolar/__init__.pyc
rm -rf pypolar/.ipynb_checkpoints
rm -rf docs/_build
rm -rf docs/api
rm -rf docs/omlc.org
rm -rf docs/refractiveindex.info
rm -rf docs/.ipynb_checkpoints
rm -rf tests/__pycache__
.PHONY: clean check html test rcheck lintcheck doccheck notecheck