-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
73 lines (64 loc) · 1.57 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
html:
cd docs && python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build
open docs/_build/index.html
rstcheck:
-rstcheck README.rst
-rstcheck CHANGELOG.rst
-rstcheck docs/index.rst
-rstcheck docs/changelog.rst
-rstcheck --ignore-directives automodapi docs/ofiber.rst
lint:
-pylint ofiber/basics.py
-pylint ofiber/cylinder_step.py
-pylint ofiber/dispersion.py
-pylint ofiber/graded_index.py
-pylint ofiber/noise.py
-pylint ofiber/planar_parabolic.py
-pylint ofiber/planar_step.py
-pylint ofiber/refraction.py
-pylint ofiber/__init__.py
ruff:
ruff check
notecheck:
make clean
pytest --verbose tests/test_all_notebooks.py
rcheck:
make lint
make ruff
make rstcheck
make html
check-manifest
pyroma -d .
make notecheck
lite:
mkdir files
cp docs/0-Basics.ipynb files
cp docs/1-Refractive-Index.ipynb files
cp docs/2-Materials.ipynb files
cp docs/3-Planar-Waveguide-Modes.ipynb files
cp docs/4-Circular-Step-Index-Fiber.ipynb files
cp docs/5-Dispersion.ipynb files
cp docs/6-Zero-Dispersion.ipynb files
cp docs/7-Detectors.ipynb files
jupyter lite init
jupyter lite build
jupyter lite serve
# cp docs/8-Optical-Fiber-Amplifiers.ipynb
clean:
rm -rf docs/api
rm -rf docs/_build
rm -rf docs/.ipynb_checkpoints
rm -rf dist
rm -rf ofiber.egg-info
rm -rf ofiber/__pycache__
rm -rf ofiber/*.pyc
rm -rf ofiber/.ipynb_checkpoints
rm -rf tests/__pycache__
rm -rf .ruff_cache
rm -rf __pycache__
rm -rf build
rm -rf files
rm -rf _output
rm -rf .jupyterlite.doit.db
rm -rf .pytest_cache
.PHONY: clean rcheck html rstcheck lintcheck doccheck rcheck