Spaces:
Sleeping
Sleeping
File size: 1,289 Bytes
905e3b7 | 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 55 | .PHONY: help install run ingest docker-build docker-up docker-down clean test lint format
help:
@echo "DocIntel Makefile Commands:"
@echo ""
@echo " make install - Install dependencies"
@echo " make run - Run Streamlit app"
@echo " make ingest - Ingest documents from data/raw/"
@echo " make docker-build - Build Docker image"
@echo " make docker-up - Run with Docker Compose"
@echo " make docker-down - Stop Docker containers"
@echo " make test - Run unit tests"
@echo " make lint - Run linters"
@echo " make format - Format code"
@echo " make clean - Clean temporary files"
install:
pip install -r requirements.txt
run:
streamlit run app/ui/streamlit_app.py
ingest:
python scripts/ingest_documents.py data/raw/
docker-build:
docker build -t docintel .
docker-up:
docker-compose up --build
docker-down:
docker-compose down
test:
pytest tests/ -v --cov=app --cov-report=html
lint:
ruff check app/
mypy app/ --ignore-missing-imports
format:
black app/
isort app/
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf .ruff_cache/
rm -rf htmlcov/
rm -rf coverage.xml
rm -rf *.log
rm -rf *.json |