Debian Codegraph @

Makefile

raw symbols SCIP
1 .PHONY: clean install develop lint test types docs livedocs
2
3 JOBS ?= 1
4
5 help:
6 @echo "make"
7 @echo " clean"
8 @echo " Remove Python/build artifacts."
9 @echo " develop"
10 @echo " Configure development environment for questionary."
11 @echo " install"
12 @echo " Install questionary."
13 @echo " lint"
14 @echo " Check the code style and apply black formatting."
15 @echo " test"
16 @echo " Run the unit tests."
17 @echo " types"
18 @echo " Check for type errors using pytype."
19 @echo " docs"
20 @echo " Build the documentation."
21 @echo " livedocs"
22 @echo " Build the documentation with a live preview for quick iteration."
23
24 clean:
25 find . -name '*.pyc' -exec rm -f {} +
26 find . -name '*.pyo' -exec rm -f {} +
27 find . -name '*~' -exec rm -f {} +
28 rm -rf build/
29 rm -rf questionary.egg-info/
30 rm -rf .mypy_cache/
31 rm -rf .pytest_cache/
32 rm -rf dist/
33 poetry run make -C docs clean
34
35 install:
36 poetry install --with="docs"
37
38 develop: install
39 poetry run pre-commit install
40
41 lint:
42 poetry run pre-commit run -a
43
44 test:
45 poetry run pytest --cov questionary -v
46
47 types:
48 poetry run mypy --version
49 poetry run mypy questionary
50
51 docs:
52 poetry run make -C docs html
53
54 livedocs:
55 poetry run sphinx-autobuild docs docs/build/html