4 ms·
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.
by hkt 4y ago
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.
- ikornaselur 4y agoJust 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.
- hkt 4y ago> 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.
- akx 4y ago18 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 https://github.com/home-assistant/core/pull/86224 by yours truly.)
- hkt 4y agoThat's a great point. The GWP of computation is hugely underappreciated. (Also, nice work!)