-
Notifications
You must be signed in to change notification settings - Fork 236
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
Proposal: use ruff to replace flake8 and related extensions #1282
Comments
I strongly agree. Not only is it faster, the list of modules that would get replaced, AFAIK is:
In addition, there's more out-of-the-box functionality (e.g. pandas-vet for us pandas users). |
@joelb123 @cauliyang do you know of any forks that use ruff? I have a fork at https://github.com/bmritz/cookiecutter-hypermodern-python that I was thinking about putting ruff into, but if there's a reference I could go off of, that would be helpful. EDIT: here's one: https://github.com/dbatten5/cookiecutter-hypermodern-python. And here is the relevant commit: dbatten5@327b373 |
Yes, I saw the @dbatten5 commit, but I haven't looked at it in detail. I did notice that this fork kept 'isort', which is a pity since getting rid of fighting with 'isort' is one of the many good things about ruff. Because ruff is so performant and has '--fix' for many issues, it can enable checks/fixes with every save by the IDE (e.g., via the pycharm ruff plugin). This means more productivity for those who use ruff, but it also means more boilerplate in 'pyproject.toml'. |
I couldn't really get EDIT: Got there in the end dbatten5@68dbd7d . Was having a little trouble with autodetection of first party imports so ended up having to go with |
Does anyone have ruff running succesfully and able to open a PR in this repo? |
I have it running in my fork https://github.com/dbatten5/cookiecutter-hypermodern-python. Should be able to open a PR in the near future |
I think this would be a great change, not sure if anyone has put in a PR for it yet? |
I'm working on replacing all compatible linters with ruff on my fork. The only things I didn't replace yet are Given |
There's |
@webknjaz Thanks for pointing that out! I'm impressed with |
As highlighted [here][github discussion], pydoclint is a much faster alternative. [github discussion]: cjolowicz/cookiecutter-hypermodern-python#1282 (comment)
As highlighted [here][github discussion], pydoclint is a much faster alternative. [github discussion]: cjolowicz/cookiecutter-hypermodern-python#1282 (comment)
As highlighted [here][github discussion], pydoclint is a much faster alternative. [github discussion]: cjolowicz#1282 (comment)
As highlighted [here][github discussion], pydoclint is a much faster alternative. [github discussion]: cjolowicz#1282 (comment)
@bruno-fs Your fork looks really interesting. Any plans to contribute and open a PR here? 🙏 |
Thanks, @bosd. I'm using it in some projects. I do plan to open a PR, but aaaaaaaaaall the documentation still needs to be updated and I have other priorities atm. Also, I went a little bit further and stripped away Furthermore, I'm also on the verge of removing |
@bruno-fs Thanks, your fork looks really interesting. |
@bosd cruft is not on the fork, I'm just using it to consume the template instead of using cookiecutter itself :D But replacing linters with ruff already is an opinionated move. The author might not even accept a PR. What are your thoughts on this matter, @cjolowicz? Would you accept a PR replacing python linters with ruff? If so, I could create a branch with a cleanup version of my fork, only replacing the linters. I'd probably need help from someone interested to also update the documentation. That part is lacking in my fork. |
Now ruff is blazing fast linter than flake8. Its rules are self contained and it is evolving quickly so far. Currently it has covered most useful rules. I think we can keep an eye on it and move to ruff at proper time. What do you think?
The text was updated successfully, but these errors were encountered: