-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: faster linting with ruff #3956
Comments
I support this. Reducing the number of dependents is also an advantage (as using Ruff instead of insort, flake8 and pylint). |
Hi all, I can take a look at this issue, as agreed with @jeremyary FYI, I've just started playing with the latest ruff(*), which uses flake8 6.1.0 instead of Feast default of
That translates to ruff's:
But, despite the claim of During this initial investigation, I've found also a few discrepancies, even using the same settings, so I'm wondering if we can just add some extra ignore options to lead to the equivalent linting output with no code changes or we want to go further and also fix the new issues identified by (*) do you see any reasons for not using the latest version? |
I believe we don't have to config the Ruff exact same as before. I prefer the "ignore" option and let's put Ruff to work. Once it is done. We can have new PRs to fix those "ignored" code. |
agree with @shuchu |
One more point: ATM Feast uses
Can we state that the request for this issue is to move from Also, the |
Hi, another thing I've just discovered and then I'll stop bothering until you provide any guidance.
The reason for saying that is that:
In short: the current configuration is misleading and category |
Yes, should take additional efforts to pick up the right setting |
A possible configuration to replicate the current linter behavior (note: it must be in
No further setting is needed for
Note 1: Few files (4) must be fixed to adapt to the known differences between
(*) in both cases, ~7" are consumed by Pls let me know if it's worth going forward in any way and how we want to deal with the file formatting step. |
As agreed with @jeremyary , sent PR #4043 to clarify what I tried to explain in previous comments. |
Is your feature request related to a problem? Please describe.
Since we're adopting flake8 and isort which are conventional formatters, however apparently they usually take some time to finish the job.
Describe the solution you'd like
Adopting ruff would improve significantly lint check due to its rust-backed mechanism.
Moreover, ruff offers unified settings and simplifies packages installation, all we need to focus is ruff configuration.
So that we could remove fragmented config files in our repo
Describe alternatives you've considered
Stick with current settings
The text was updated successfully, but these errors were encountered: