Comments: Sourcery will now spot issues in your code that don't have an
automated code fix. Instead we will give a detailed explanation of the issue
along with a guide on how to fix them. Just hover for more info. The first
comment that we have introduced is
- here we can identify that a base
Exception is being raised (and explain
how it is better to raise a specific exception), but we can't automatically
detect which exception should be raised in this case.
There is now a new config option to specify which rule types to display in the plugins - you can choose to any combination of refactorings, suggestions and comments.
Sourcery refactorings can now add imports where necessary. This means that we
can suggest using standard library functions such as
path-readwill now suggest importing
pathlibif it is not already imported.
raise e from ewas suggested.
aware-datetime-for-utcthat caused them to never be triggered
remove-redundant-fstring: Do not trigger if the f-string contains escaped curly braces