-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
65 lines (55 loc) · 1.32 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
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = docs/_build
html:
$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
open docs/_build/index.html
lite:
jupyter lite build --XeusPythonEnv.packages=numpy,matplotlib,scipy,pyspeckle
lint:
-pylint pyspeckle/pyspeckle.py
-pylint pyspeckle/__init__.py
yamlcheck:
-yamllint .github/workflows/pypi.yaml
-yamllint .github/workflows/test.yaml
-yamllint .github/workflows/citation.yaml
rstcheck:
-rstcheck README.rst
-rstcheck CHANGELOG.rst
-rstcheck docs/index.rst
-rstcheck docs/changelog.rst
-rstcheck --ignore-directives automodapi docs/pyspeckle.rst
rcheck:
make clean
ruff check
make test
make rstcheck
make html
check-manifest
pyroma -d .
test:
make clean
pytest tests/test_basics.py
pytest tests/test_all_notebooks.py
clean:
rm -rf __pycache__
rm -rf _output
rm -rf .tox
rm -rf .ipynb_checkpoints
rm -rf .jupyterlite.doit.db
rm -rf .pytest_cache
rm -rf .virtual_documents
rm -rf build
rm -rf dist
rm -rf docs/_build
rm -rf docs/_contents
rm -rf docs/_output
rm -rf docs/api
rm -rf docs/.ipynb_checkpoints
rm -rf docs/.jupyterlite.doit.db
rm -rf tests/__pycache__
rm -rf pyspeckle.egg-info
rm -rf pyspeckle/__pycache__
rm -rf pyspeckle/*.pyc
.PHONY: clean check rcheck html doccheck lintcheck rstcheck