forked from Deen-Bridge/dnb-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (14 loc) · 672 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (14 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: dev run install lint test clean
dev:
python3 -m uvicorn main:app --reload
run:
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
install:
pip install -r requirements.txt
lint:
flake8 main.py stellar.py safety tests/redteam study.py fiqh.py hadith.py confidence.py review.py review_store.py tafsir.py semantic_cache.py --max-line-length=120 --ignore=E501,W503
test:
pytest -q tests/redteam tests/test_study.py tests/test_semantic_cache.py tests/test_fiqh.py tests/test_hadith.py tests/test_confidence.py tests/test_review_queue.py tests/test_tafsir.py
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete