forked from HazyResearch/bootleg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 823 Bytes
/
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
dev:
pip install -e .[dev]
pre-commit install
test: dev check docs
pip install -e .
pytest tests
format:
isort --atomic bootleg/ tests/
black bootleg/ tests/
# docformatter --in-place --recursive bootleg tests
check:
isort -c bootleg/ tests/
black bootleg/ tests/ --check
flake8 bootleg/ tests/
docs:
sphinx-build -b html docs/source/ docs/build/html/
# sphinx-apidoc -o docs/source/apidocs/ bootleg
docs-check:
sphinx-build -b html docs/source/ docs/build/html/ -W
livedocs:
sphinx-autobuild -b html docs/source/ docs/build/html/
clean:
pip uninstall -y bootleg
rm -rf src/bootleg.egg-info
rm -rf build/ dist/
prune:
@bash -c "git fetch -p";
@bash -c "for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -d $branch; done";
.PHONY: dev test clean check docs prune