| 1 |
|
| 2 |
|
| 3 |
.PHONY: all test cover |
| 4 |
PROJECT = pytermgui |
| 5 |
|
| 6 |
install: |
| 7 |
pip3 install -e . |
| 8 |
|
| 9 |
all: |
| 10 |
make install format lint list-todo |
| 11 |
|
| 12 |
format: |
| 13 |
isort $(PROJECT) && black $(PROJECT) |
| 14 |
|
| 15 |
lint: |
| 16 |
pylint $(PROJECT) |
| 17 |
|
| 18 |
lint-prose: |
| 19 |
python3 utils/lint_prose.py |
| 20 |
|
| 21 |
type: |
| 22 |
mypy $(PROJECT) |
| 23 |
|
| 24 |
list-todo: |
| 25 |
python3 utils/list_todos.py "`grep -rnw . -e '# TODO'`" |
| 26 |
|
| 27 |
test: |
| 28 |
pytest --cov='./pytermgui' |
| 29 |
|
| 30 |
cover: |
| 31 |
coverage html |
| 32 |
|
| 33 |
test-cov: |
| 34 |
make test cover |
| 35 |
|
| 36 |
docs: |
| 37 |
pdoc --logo https://github.com/bczsalba/pytermgui/blob/master/assets/title.png?raw=true --docformat google -o docs pytermgui |