-
Notifications
You must be signed in to change notification settings - Fork 23
Feature/Issue#3_supabase #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
e34b715
f7dc25b
8520c3b
5e83bf0
902028a
dd98034
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,7 +181,10 @@ pyrightconfig.json | |
|
|
||
| # Cursor | ||
| .cursorrules | ||
| .cursor | ||
| mcp.jason | ||
|
|
||
| #chainlit | ||
| .chainlit/ | ||
|
|
||
| src/utils/test_real_data.py | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,131 @@ | ||||||||||||||||||||||||||||||||||||||||||
| #!/usr/bin/env python3 | ||||||||||||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||||||||||||
| Database test script for VeriFact | ||||||||||||||||||||||||||||||||||||||||||
| Test all database operations including vector similarity search. | ||||||||||||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| import asyncio | ||||||||||||||||||||||||||||||||||||||||||
| import sys | ||||||||||||||||||||||||||||||||||||||||||
| from pathlib import Path | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Add the project root to Python path | ||||||||||||||||||||||||||||||||||||||||||
| project_root = Path(__file__).resolve().parent.parent.parent | ||||||||||||||||||||||||||||||||||||||||||
| if str(project_root) not in sys.path: | ||||||||||||||||||||||||||||||||||||||||||
| sys.path.insert(0, str(project_root)) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| from dotenv import load_dotenv | ||||||||||||||||||||||||||||||||||||||||||
| from src.utils.db import db_manager | ||||||||||||||||||||||||||||||||||||||||||
| from src.verifact_agents.claim_detector import Claim | ||||||||||||||||||||||||||||||||||||||||||
| from src.verifact_agents.evidence_hunter import Evidence | ||||||||||||||||||||||||||||||||||||||||||
| from src.verifact_agents.verdict_writer import Verdict | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
| # Add the project root to Python path | |
| project_root = Path(__file__).resolve().parent.parent.parent | |
| if str(project_root) not in sys.path: | |
| sys.path.insert(0, str(project_root)) | |
| from dotenv import load_dotenv | |
| from src.utils.db import db_manager | |
| from src.verifact_agents.claim_detector import Claim | |
| from src.verifact_agents.evidence_hunter import Evidence | |
| from src.verifact_agents.verdict_writer import Verdict | |
| from dotenv import load_dotenv | |
| from src.utils.db import db_manager | |
| from src.verifact_agents.claim_detector import Claim | |
| from src.verifact_agents.evidence_hunter import Evidence | |
| from src.verifact_agents.verdict_writer import Verdict | |
| # Add the project root to Python path | |
| project_root = Path(__file__).resolve().parent.parent.parent | |
| if str(project_root) not in sys.path: | |
| sys.path.insert(0, str(project_root)) |
🧰 Tools
🪛 GitHub Actions: CI
[error] 15-15: Ruff E402: Module level import not at top of file for 'from dotenv import load_dotenv'.
[error] 17-17: Ruff E402: Module level import not at top of file for 'from src.utils.db import db_manager'.
[error] 18-18: Ruff E402: Module level import not at top of file for 'from src.verifact_agents.claim_detector import Claim'.
[error] 19-19: Ruff E402: Module level import not at top of file for 'from src.verifact_agents.evidence_hunter import Evidence'.
[error] 20-20: Ruff E402: Module level import not at top of file for 'from src.verifact_agents.verdict_writer import Verdict'.
🤖 Prompt for AI Agents
In src/tests/test_database.py around lines 11 to 20, the imports are placed
after some code that modifies sys.path. To comply with PEP 8 standards, move all
module-level import statements to the very top of the file, before any other
code, including the sys.path modification. You can keep the sys.path
modification after the imports if necessary, but ideally, adjust the code so
that imports are at the top.
Check warning on line 42 in src/tests/test_database.py
Codacy Production / Codacy Static Code Analysis
src/tests/test_database.py#L42
Method test_database_operations has 68 lines of code (limit is 50)
Uh oh!
There was an error while loading. Please reload this page.