The Sourcery CLI now
review command. Use this to get Sourcery to give suggestions and
comments in addition to standard refactorings. Commented lines will be
highlighted in red.
Add removal of bools to
The remove-duplicate-key refactoring was split into a refactoring
and a suggestion
was enhanced to handle unpacked dictionaries
were enhanced to refactor dicts and sets in any context (previously they were
only applied in assignments).
will now also simplify len(s) < 0 as False and len(s) >= 0 as True
will now also cover raising BaseException and raising from other exceptions
Comments will now show on the correct line where there are functions with docstrings. Addresses issue #211
F-strings containing escaped characters will not be refactored into constant strings. Addresses issue #213.
now triggers in the correct way for applying
Do not apply if the variable is overwritten in a loop
will now combine nested products. Fixes
We now assume
all write to their arguments, since they exhaust
iterators. This fixes