sourcery
sourcery copied to clipboard
Instant AI code reviews
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...
### 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...
### 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`...
### 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...
### Issue description or question Simplifying boolean comparison should not touch `is` operator usage as it directly checks type, not result of conversion to bool. ...
### 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,...
### 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.  for how to write an editor plugin using our LSP server
### 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:...