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

adopt ruff? #3260

Open
srikanthccv opened this issue Apr 14, 2023 · 4 comments
Open

adopt ruff? #3260

srikanthccv opened this issue Apr 14, 2023 · 4 comments
Labels
build & infra Issues related to build & infrastructure. meta Related to repo itself, process, community, ... tooling

Comments

@srikanthccv
Copy link
Member

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

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

@srikanthccv srikanthccv added meta Related to repo itself, process, community, ... build & infra Issues related to build & infrastructure. tooling labels Apr 14, 2023
@lzchen
Copy link
Contributor

lzchen commented Apr 17, 2023

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

@srikanthccv
Copy link
Member Author

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.

@aabmass
Copy link
Member

aabmass commented Mar 28, 2024

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)

@aabmass
Copy link
Member

aabmass commented Mar 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build & infra Issues related to build & infrastructure. meta Related to repo itself, process, community, ... tooling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants