Spaces:
Runtime error
Runtime error
Susanna Anil
commited on
Commit
·
2b93e1d
1
Parent(s):
8e9a7ea
scaffolding
Browse files- Makefile +25 -0
- requirements.txt +8 -0
- scrape_load.ipynb +1 -1
Makefile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
install:
|
2 |
+
pip install --upgrade pip &&\
|
3 |
+
pip install -r requirements.txt
|
4 |
+
|
5 |
+
format:
|
6 |
+
black *.py logic/*py
|
7 |
+
|
8 |
+
lint:
|
9 |
+
pylint --disable=R,C test_logic.py
|
10 |
+
|
11 |
+
test:
|
12 |
+
python -m pytest -vv test_logic.py
|
13 |
+
|
14 |
+
run:
|
15 |
+
#run docker
|
16 |
+
docker run -p 127.0.0.1:8080:8080 1896dd6bda62
|
17 |
+
|
18 |
+
# deploy:
|
19 |
+
# #deploy
|
20 |
+
# aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 561744971673.dkr.ecr.us-east-1.amazonaws.com
|
21 |
+
# docker build -t fastapi-wiki .
|
22 |
+
# docker tag fastapi-wiki:latest 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapi-wiki:latest
|
23 |
+
# docker push 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapi-wiki:latest
|
24 |
+
|
25 |
+
all: install lint test format #deploy
|
requirements.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
pytest
|
3 |
+
pylint
|
4 |
+
uvicorn[standard]
|
5 |
+
pandas
|
6 |
+
black
|
7 |
+
transformers
|
8 |
+
praw
|
scrape_load.ipynb
CHANGED
@@ -80,7 +80,7 @@
|
|
80 |
"name": "python",
|
81 |
"nbconvert_exporter": "python",
|
82 |
"pygments_lexer": "ipython3",
|
83 |
-
"version": "3.10.4"
|
84 |
},
|
85 |
"orig_nbformat": 4,
|
86 |
"vscode": {
|
|
|
80 |
"name": "python",
|
81 |
"nbconvert_exporter": "python",
|
82 |
"pygments_lexer": "ipython3",
|
83 |
+
"version": "3.10.4 (main, Nov 29 2022, 20:00:25) [GCC 9.4.0]"
|
84 |
},
|
85 |
"orig_nbformat": 4,
|
86 |
"vscode": {
|