Yasin Ünsal
commited on
Commit
·
6adfc68
1
Parent(s):
cb10b21
first commit
Browse files- Makefile +26 -0
- requirements.txt +3 -0
Makefile
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
install:
|
2 |
+
pip install --upgrade pip &&\
|
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
|
9 |
+
#python -m pytest -v tests/test_web.py
|
10 |
+
|
11 |
+
debug:
|
12 |
+
python -m pytest -vv --pdb #dbugger is invoked
|
13 |
+
|
14 |
+
one-test:
|
15 |
+
python -m pytest -vv tests/test_greeting.py::test_my_name4
|
16 |
+
|
17 |
+
debugthree:
|
18 |
+
python -m pytest -vv -pdb --maxfail=4 #drop to pdb for first three failures
|
19 |
+
|
20 |
+
format:
|
21 |
+
black *.py
|
22 |
+
|
23 |
+
lint:
|
24 |
+
pylint --diable=R,C *.py
|
25 |
+
|
26 |
+
all: install lint test format
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
gradio
|
2 |
+
transformers
|
3 |
+
tensorflow
|