-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathMakefile
60 lines (46 loc) · 1.42 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
port ?= "8000"
autoformat:
black meerkat/ tests/ demo/
isort --atomic meerkat/ tests/ demo/
docformatter --in-place --recursive meerkat tests demo
lint:
isort -c meerkat/ tests/ demo/
black meerkat/ tests/ demo/ --check
flake8 meerkat/ tests/ demo/
test:
pytest tests/
test-basic:
set -e
python -c "import meerkat as mk"
python -c "import meerkat.version as mversion"
test-cov:
pytest tests/ --cov=./ --cov-report=xml
test-interactive-install:
set -e
mk install --no-run-dev
docs:
set -e
rm -rf docs/source/apidocs/generated
python docs/source/rst_gen.py
sphinx-build -b html docs/source/ docs/build/html/
docs-check:
python docs/source/rst_gen.py
rm -rf docs/source/apidocs/generated
sphinx-build -b html docs/source/ docs/build/html/ -W
livedocs:
rm -rf docs/source/apidocs/generated
python docs/source/rst_gen.py
SPHINX_LIVEDOCS=true sphinx-autobuild -b html docs/source/ docs/build/html/ --port=${port}
website-install:
cd website && npm install && cd ..
website:
set -e
make docs -B
rm -rf website/static/docs
mkdir -p website/static/docs
cp -r docs/build/html/* website/static/docs/
python website/reroute.py
cd website && npm run build
dev:
pip install black==22.12.0 isort flake8 docformatter pytest-cov sphinx-rtd-theme nbsphinx recommonmark pre-commit sphinx-panels jupyter-sphinx pydata-sphinx-theme sphinx-autobuild sphinx-toolbox sphinx-copybutton sphinx_design
all: autoformat lint docs test