sourcery
sourcery copied to clipboard
Instant AI code reviews
### Issue description or question Rencently I update the sourcery via pycharm, but it always raise an exception.  At first, I thought it was a proxy problem. But when...
### Semantics-breaking refactoring suggested by Sourcery "Merge dictionary updates via the union operator" Code before: ``` a = {'a': 'b'} a.update({k: a[v] for k, v in {'c': 'a'}.items()}) ``` When...
### Issue description or question Could you provide JSON schema files for your project and user settings? This would make changing (and exploring) the settings options available right from an...
### Issue description or question I'm using sourcery on CentOS 7 with VS Code, using Remote - SSH, and when the first python file is opened sourcery tries to start...
### Issue description or question def __repr__(self): return "" % (self.__class__.__name__, self) is listed as def __repr__(self): - return "%s: %s>" % (self.__class__.__name__, self) + return f"{self.__class__.__name__}: {self}>" Note the...
### Issue description or question I am unable to install sourcery-cli via pip. When I run `pip install sourcery-cli`, I am shown the following error: ``` $ pip install sourcery-cli...
### Issue description or question **Issue reported to our e-mail support.** The `match` statement, introduced in Python 3.10, causes Sourcery to throw the following error: ``` [Error - 6:28:41 PM]...
### Issue description or question I use Sourcery via the VS Code extension, and while VS Code is now native M1, I noticed that Sourcery still appears in Activity Monitor...
The applicable code snippet is as follows: ```python if cond: assert False, "msg" # ==> assert not cond, "msg" ``` I have encountered this in one of my codebases and...
### Sourcery fails to recognize [python docstrings](https://peps.python.org/pep-0257/), and the refactoring it offers delete the entire class/function the "problem" it reports is Sourcery - Remove unnecessary call to `str()` within `print()`...