|
install: |
|
pip install --upgrade pip &&\ |
|
pip install -r requirements.txt |
|
|
|
test: |
|
python -m pytest -vvv --cov=hello --cov=greeting \ |
|
--cov==smath --cov=web tests |
|
python -m pytest --nbval notebook.ipynb |
|
#python -m pytest -v tests/test_web.py |
|
|
|
debug: |
|
python -m pytest -vv --pdb #dbugger is invoked |
|
|
|
one-test: |
|
python -m pytest -vv tests/test_greeting.py::test_my_name4 |
|
|
|
debugthree: |
|
python -m pytest -vv -pdb --maxfail=4 #drop to pdb for first three failures |
|
|
|
format: |
|
black *.py |
|
|
|
lint: |
|
pylint --diable=R,C *.py |
|
|
|
all: install lint test format |