tdecae commited on
Commit
4acb1da
1 Parent(s): f9fd3ba

Create Makefile

Browse files
Files changed (1) hide show
  1. Makefile +28 -0
Makefile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Makefile
2
+
3
+ install:
4
+ pip install --upgrade pip &&\
5
+ pip install -r requirements.txt
6
+
7
+ test:
8
+ python -m pytest -vvv -cov=hello --cov=greeting \
9
+ --cov=smath --cov=web tests
10
+ python -m pytest --nbval notebook.ipynb # test jupyter notebook
11
+ #python -m pytest -v tests/test_web.py # if just test web
12
+
13
+ debug:
14
+ python -m pytest -vv --pdb #Debugger is invoked
15
+
16
+ one-test:
17
+ python -m pytest -vv tests/test_greeting.py::test_my_name4
18
+
19
+ debugthree:
20
+ python -m pytest -vv --pdb --maxfail=4
21
+
22
+ format:
23
+ black *.py
24
+
25
+ lint:
26
+ pylint --disable=R,C *.py
27
+
28
+ all: install lint test format