Padmanav commited on
Commit
388dfbf
·
1 Parent(s): f249c51

fix: remove eager wildcard imports from __init__.py files

Browse files

tools/__init__.py was importing github_tool (which needs gitpython)
even in tests that only needed file_scanner. agents/__init__.py had
the same problem pulling the entire dep graph on any agent import.
Callers now import directly from the submodule they need.

Files changed (2) hide show
  1. app/agents/__init__.py +0 -7
  2. app/tools/__init__.py +0 -5
app/agents/__init__.py CHANGED
@@ -1,7 +0,0 @@
1
- from app.agents import (
2
- repo_analysis_agent as repo_analysis_agent,
3
- bug_detection_agent as bug_detection_agent,
4
- test_generation_agent as test_generation_agent,
5
- code_review_agent as code_review_agent,
6
- report_generator_agent as report_generator_agent
7
- )
 
 
 
 
 
 
 
 
app/tools/__init__.py CHANGED
@@ -1,5 +0,0 @@
1
- from app.tools.github_tool import clone_repository as clone_repository, delete_repository as delete_repository
2
- from app.tools.file_scanner import scan_repository as scan_repository, get_entry_points as get_entry_points, get_python_files as get_python_files
3
- from app.tools.ast_parser import parse_python_file as parse_python_file, parse_repository as parse_repository
4
- from app.tools.pytest_runner import run_tests as run_tests
5
- from app.tools.static_analyzer import run_full_analysis as run_full_analysis