sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.43k stars 425 forks source link

Sweep: Refactor test_jedi.py to Remove Commented-Out Code and Add Traceback to Exception Handling #1876

Open sweep-nightly[bot] opened 1 year ago

sweep-nightly[bot] commented 1 year ago

The file tests/archive/test_jedi.py needs to be refactored to conform to our coding standards.

  1. Remove Commented-Out Code: There are several lines of code that are commented out (lines 15, 16, 17, 19, 20, 21, 43, 44, 45, 46). These lines should be removed unless they serve as docstrings or explanations.

  2. Add Traceback to Exception Handling: The exception handling block (lines 33-35) should be updated to use traceback for logging the exception. This can be done by importing the traceback module and using traceback.print_exc() in the exception block.

Please make these changes to ensure the code conforms to our standards.

sweep-nightly[bot] commented 1 year ago
Sweeping

0%

Actions (click)


❌ Unable to Complete PR

It looks like an issue has occurred around fetching the files. Perhaps the repo has not been initialized. If this error persists contact team@sweep.dev.

@sweep-nightly[bot], editing this issue description to include more details will automatically make me relaunch.

For bonus GPT-4 tickets, please report this bug on Discord.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.