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

Implement shell autocompletion for rule codes #2906

Merged

Commits on Feb 15, 2023

  1. Implement shell autocompletion for rule codes

    For example:
    
        $ ruff check --select=EM<Tab>
        EM          -- flake8-errmsg
        EM10   EM1  --
        EM101       -- raw-string-in-exception
        EM102       -- f-string-in-exception
        EM103       -- dot-format-in-exception
    
    (You will need to enable autocompletion as described
     in the Autocompletion section in the README.)
    
    Fixes astral-sh#2808.
    
    (The --help help change in the README is due to a clap bug,
     for which I already submitted a fix:
     clap-rs/clap#4710.)
    not-my-profile committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    08c7692 View commit details
    Browse the repository at this point in the history