Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,3 @@ cython_debug/
#.idea/
.vscode/settings.json
history.txt

# ignore default output directory
output/
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fastapi[standard]
uvicorn
fastapi-analytics
click
slowapi
59 changes: 0 additions & 59 deletions src/cli.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def create_tree_structure(query: dict, node: Dict, prefix: str = "", is_last: bo
def ingest_from_query(query: dict, ignore_patterns: List[str] = DEFAULT_IGNORE_PATTERNS, max_file_size: int = MAX_FILE_SIZE) -> Dict:
"""Main entry point for analyzing a codebase directory or single file."""

path = f"{query['local_path'].strip()}{query['subpath'].strip()}"
path = f"{query['local_path']}{query['subpath']}"
if not os.path.exists(path):
raise ValueError(f"{path} cannot be found, make sure the repository is public")
raise ValueError(f"{query['slug']} cannot be found, make sure the repository is public")

if query.get('type') == 'blob':
if not os.path.isfile(path):
Expand Down