Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest fixes for issues #1001

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Suggest fixes for issues #1001

wants to merge 1 commit into from

Commits on Mar 19, 2023

  1. Suggest fixes for issues

    This change introduces a new feature that will suggest a fix in
    the form of a line of code as replacement for the line range of
    the issue.
    
    This is the first step to have the ability to auto-correct problems
    detected. Later more changes can be merged to modify the file with
    the suggested fix.
    
    The Issue class has a new fix string attribute that denotes how
    the lines of affected code can be replaced. This suggested fix
    will not preserve code comments and possibly other optimizations
    the AST does not capture.
    
    Closes PyCQA#439
    
    Signed-off-by: Eric Brown <browne@vmware.com>
    Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
    ericwb committed Mar 19, 2023
    Configuration menu
    Copy the full SHA
    41ae814 View commit details
    Browse the repository at this point in the history