Skip to content

Commit 346860c

Browse files
Cheticclaude
andcommitted
chore: remove unused python-dotenv dependency and env var remnants
Cleanup after migration to config.yaml (commit 04e3922): - Remove python-dotenv from requirements.txt (unused in production) - Remove load_dotenv() imports and calls from test files - Update test documentation to reference config.yaml instead of old env var names The production code now only uses CHUNKSILO_CONFIG to locate the config file. Test-specific env vars (TEST_DATA_DIR, etc.) remain for test isolation. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f08ece9 commit 346860c

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pillow>=10.3.0,<11
66
pypdf>=5.1.0,<7
77
python-docx>=1.1.0,<2
88
mcp>=1.0.0,<2
9-
python-dotenv>=1.0.0,<2
109
huggingface-hub>=0.22.0,<2
1110
flashrank>=0.1.0,<1
1211
fastembed>=0.5.0,<1

test/TESTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ python test_retrieval_only.py
6363
```
6464

6565
This will:
66-
- Ingest documents from `DATA_DIR` (default `./data`)
67-
- Build and persist the index into `STORAGE_DIR` (default `./storage`)
66+
- Ingest documents from the directories configured in `config.yaml` (default `./data`)
67+
- Build and persist the index to the storage directory in `config.yaml` (default `./storage`)
6868
- Perform a retrieval-only test over the index
6969

7070
### 2. End-to-end retrieval test (MCP server logic)

test/test_rag_metrics.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
from urllib.parse import urlparse
2222

2323
import requests
24-
from dotenv import load_dotenv
25-
26-
load_dotenv()
2724

2825
# Set up logging
2926
logging.basicConfig(

test/test_retrieval_only.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""Test the RAG system in retrieval-only mode (no LLM in the MCP server)."""
33
import traceback
44
from pathlib import Path
5-
from dotenv import load_dotenv
65
import pytest
76

87
from chunksilo.index import load_index_config, build_index
@@ -11,8 +10,6 @@
1110

1211
STORAGE_DIR = Path(load_config()["storage"]["storage_dir"])
1312

14-
load_dotenv()
15-
1613

1714
def test_ingestion():
1815
"""Test the ingestion pipeline."""

0 commit comments

Comments
 (0)