sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Instant AI code reviews

Results 146 sourcery issues
Sort by recently updated
recently updated
newest added

Currently, the refactoring suggestions simply show the suggestion text. If we can add identifiers for a specific suggestion, it will shorten the Issue descriptions and would enable the use of...

enhancement

### Issue description or question When a function is declared in the global scope, right after a class, the function is being assumed to be a bound method of that...

bug

### Issue description or question Sourcery decides not to refactor what is literally the same line. 🤔 Commenting out the `test_1` method changes nothing, still won't want to refactor `test_2`...

enhancement

### Issue description or question For the code given, ```py def cube(t: float) -> float: return t * t * t ``` The suggested replacement ends up being ```py def...

enhancement

### Issue description or question Simplifying boolean comparison should not touch `is` operator usage as it directly checks type, not result of conversion to bool. ![Zrzut ekranu z 2022-06-27 10-36-52](https://user-images.githubusercontent.com/3826210/175896795-77796965-baef-44f0-bd7b-5f92071631a2.png)...

enhancement

### Issue description or question ### Sourcery Version Version : v0.10.2 ### Code editor or IDE name and version 1.65.0-insider 50089c3f92c17584a4aca179f51f220b56c22020 x64 ### OS name and version Linux on remote,...

bug

### Issue description or question Sourcery is chewing up a lot of CPU despite my IDE not actually being open. My IDE hasn't been open for hours. ![Screenshot 2022-05-21 at...

bug

### Issue description or question I tried to use Sourcery in VS Code for Jupyter Notebook. But it does not give any recommendation. Is the feature of supporting Jupyter Notebook...

enhancement

Add a comment here to register interest in Sourcery support for other IDEs. Or [read our docs](https://github.com/sourcery-ai/sourcery/blob/master/WritingAnLSPClient.md) for how to write an editor plugin using our LSP server

enhancement

### Issue description or question Before this currently-unmade refactoring: ```py name = 'blah' random_name = 'asdf' other_random_name = 'sdfg' if random_name == name or other_random_name == name: print('aaaa') ``` After:...

enhancement