-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
36 lines (28 loc) · 921 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
PATHS = saq/ tests/
INSTALL = -e .[hiredis,web,dev,redis,postgres]
help:
@echo "tobymao/saq dev makefile"
@echo ""
@echo "usage: make <target>"
@echo " up Force updates dev/test dependencies - attempts clean-install"
@echo " deps Ensure dev/test dependencies are installed"
@echo " test Runs all tests"
@echo " style Lint, types, and formatting"
@echo " ci Runs style & tests (as a full CI run would)"
@echo " devdocs Builds docs and hosts them on port 8000"
up:
pip freeze | grep -v "^-e" | xargs pip uninstall -y
pip install -U --upgrade-strategy eager ${INSTALL}
deps:
pip install -q ${INSTALL}
deps_docs:
pip install -q -r docs/requirements.txt
test:
@python -m coverage erase
python -m coverage run -m unittest
@python -m coverage report
style:
pre-commit run --all-files
ci: deps style test
devdocs: deps_docs
sphinx-autobuild --ignore '*/changelog.md' docs docs/_build/html