Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This sounds nice, but um, what's the benefit to faster linting? Is it being slow really a problem people have? I've no experience of this.



18 minutes of CPU time vs 22 seconds of CPU time is significant energy-wise too.

(Example from https://github.com/home-assistant/core/pull/86224 by yours truly.)


That's a great point. The GWP of computation is hugely underappreciated.

(Also, nice work!)


Just because you don't have the issue doesn't mean it's non-existent. We went from 8ish seconds with flake8 to tens of milliseconds with ruff. Ruff can just run as a pre-commit hook because it's so fast.

I for one have stopped using flake8 in favour of ruff because of both speed and the huge amount of supported rules in ruff already.


> Just because you don't have the issue doesn't mean it's non-existent.

Indeed! Knowing this is why I asked! Having only worked on small projects I've never had an issue with flake8 as a precommit hook, but what you describe makes it sound compelling.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: