Skip to content

adopt ruff? #3260

Closed
Closed

Description

@srikanthccv
  • fast
  • autofixes
  • monorepo friendly
  • almost replacement for multiple linting packages

https://beta.ruff.rs/docs/

Activity

  1. added
    meta
    build & infra
    on Apr 14, 2023
  2. lzchen commented on Apr 17, 2023

    @lzchen
    Contributor

    Could be promising. Any risks for depending on a beta package for a linter though?

  3. srikanthccv commented on Apr 17, 2023

    @srikanthccv
    MemberAuthor

    It looks like several big projects have already started using it.
    Screenshot 2023-04-17 at 10 53 21 PM

    This may not replace everything, and we will probably run into some bummers. However, I hope this will improve the contributor experience because I have heard good things about it.

  4. aabmass commented on Mar 28, 2024

    @aabmass
    Member

    After I sent out that draft, I collected feedback at the SIG and I think everyone wants to move forward with ruff. Here is my assessment of the tradeoffs

    There have been numerous complaints about the painfully slow lint/formatting process on slack and the SIG calls lately.

    I am sending out two separate PRs:

    1. Migrating isort and black (auto formatting)
    2. Migrating flake8 and pylint (linting)
  5. aabmass commented on Mar 28, 2024

    @aabmass
    Member

    Since this will generate quite a bit of diffs, I am planning to add the commits to a .git-blame-ignore-revs file to not dirty up our history too much, see https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view.

  6. emdneto commented on Mar 12, 2026

    @emdneto
    Member

    ruff is adopted in both -core and -contrib. Future improvements are being tracked under #4227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build & inframetatooling

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions