install: | |
pip install --upgrade pip && \ | |
pip install -r requirements.txt | |
test: | |
python -m pytest -vv --cov=hello --cov=greeting \ | |
--cov=smath --cov=web tests | |
python -m pytest -nbval notebook.ipynb # test jupyter note book | |
# python -m pytest -v tests/test_web.py # if you just wat to test wev | |
debug: | |
python -m pytest -vv --pdb | |
one-test: | |
python -m pytest -vv tests/test_greeting.py::test_my_name4 | |
format: | |
black *.py | |
lint : | |
pylint --disable=R,C hello.py | |
all: install lint test |