-
Notifications
You must be signed in to change notification settings - Fork 22
Always use isort.code with exception catching everywhere #896
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
Conversation
|
Codeflash Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
fixes https://github.com/codeflash-ai/codeflash/actions/runs/19249933706/job/55032527683?pr=895
PR Type
Enhancement, Tests
Description
Centralize import sorting via
sort_importsMake
sort_importskwargs-based with error catchReplace direct
isort.codeusages in testsDiagram Walkthrough
File Walkthrough
formatter.py
Make sort_imports kwargs-based wrapper with fallbackcodeflash/code_utils/formatter.py
sort_importsto accept**kwargs.isort.code(code, **kwargs).instrument_existing_tests.py
Route test instrumentation import sorting via wrappercodeflash/code_utils/instrument_existing_tests.py
isortimport.sort_imports(..., float_to_top=True)after AST changes.isort.codecalls withsort_imports.test_instrumentation_run_results_aiservice.py
Tests use centralized sort_imports instead of isort.codetests/test_instrumentation_run_results_aiservice.py
sort_importsfrom formatter.isort.code(...)withsort_imports(...)twice.isort.Configusage passed via kwargs.