-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (43 loc) · 1.21 KB
/
Makefile
File metadata and controls
54 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: help install setup init process run test clean lint
help:
@echo "RAG Project - Available Commands"
@echo "================================"
@echo "make install - Install dependencies"
@echo "make setup - Setup project (install + init)"
@echo "make init - Initialize Pinecone index"
@echo "make run - Start Streamlit app"
@echo "make test - Run tests"
@echo "make lint - Run code linting"
@echo "make clean - Clean up generated files"
install:
pip install -r requirements.txt
@echo "✅ Dependencies installed"
setup: install
python setup_project.py
@echo "✅ Project setup complete"
init:
python main.py init
@echo "✅ Pinecone index initialized"
run:
streamlit run app.py
process:
@read -p "Enter path to documents: " path; \
python main.py process "$$path"
test:
pytest tests/ -v
lint:
flake8 src/ --max-line-length=100
black --check src/
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache/ .coverage/
@echo "✅ Cleaned up"
format:
black src/
watch:
watchmedo shell-command \
--patterns="*.py" \
--recursive \
--command='clear && python -m pytest' \
src/