sepidpy commited on
Commit
ca299de
·
unverified ·
1 Parent(s): 72a64a2

Update makefile

Browse files
Files changed (1) hide show
  1. makefile +15 -11
makefile CHANGED
@@ -3,21 +3,25 @@ install:
3
  pip install -r requirements.txt
4
 
5
  test:
6
- python -m pytest -vv test_app.py
 
 
 
7
 
8
- format:
9
- black *.py
10
 
11
- run:
12
- python app.py
13
 
14
- run-uvicorn:
15
- uvicorn app:app --reload
 
16
 
17
- killweb:
18
- sudo killall uvicorn
19
 
20
  lint:
21
- pylint --disable=R,C app.py
22
 
23
- all: install lint test
 
3
  pip install -r requirements.txt
4
 
5
  test:
6
+ python -m pytest -vvv --cov=hello --cov=greeting \
7
+ --cov=smath --cov=web tests
8
+ python -m pytest --nbval notebook.ipynb #tests our jupyter notebook
9
+ #python -m pytest -v tests/test_web.py #if you just want to test web
10
 
11
+ debug:
12
+ python -m pytest -vv --pdb #Debugger is invoked
13
 
14
+ one-test:
15
+ python -m pytest -vv tests/test_greeting.py::test_my_name4
16
 
17
+ debugthree:
18
+ #not working the way I expect
19
+ python -m pytest -vv --pdb --maxfail=4 # drop to PDB for first three failures
20
 
21
+ format:
22
+ black *.py
23
 
24
  lint:
25
+ pylint --disable=R,C *.py
26
 
27
+ all: install lint test format