- 
                Notifications
    You must be signed in to change notification settings 
- Fork 22
Context import bug #155
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
Context import bug #155
Conversation
| PR Reviewer Guide 🔍(Review updated until commit 218f6bd)Here are some key observations to aid the review process: 
 | 
| PR Code Suggestions ✨Explore these optional code suggestions: 
 | 
| Persistent review updated to latest commit 218f6bd | 
| PR Code Suggestions ✨No code suggestions found for the PR. | 
PR Type
Description
Add unused definitions removal in code context extraction.
Introduce new CST-based module for cleaning unused code.
Update context extractor to filter out dead code.
Add extensive tests for removal functionality.
Changes walkthrough 📝
import_test.py
Add test function to call main.fetch_and_transform_data.code_to_optimize/code_directories/retriever/import_test.py
code_context_extractor.py
Integrate unused definitions removal into context extraction.codeflash/context/code_context_extractor.py
unused_definition_remover.py
Implement unused definition removal using libcst.codeflash/context/unused_definition_remover.py
test_code_context_extractor.py
Update tests for code context extraction behavior.tests/test_code_context_extractor.py
test_remove_unused_definitions.py
Add comprehensive tests for unused definitions removal.tests/test_remove_unused_definitions.py
test_code_replacement.py
Clean up redundant environment config in test.tests/test_code_replacement.py