astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.82k stars 467 forks source link

Expected `rye lint` to output 'All checks passed!' #1065

Open my1e5 opened 6 months ago

my1e5 commented 6 months ago

If we look at rye fmt, its behaviour is consistent with running rye run ruff format .:

$ rye fmt
2 files left unchanged

$ rye run ruff format .
2 files left unchanged

But if I run rye lint, it doesn't print 'All checks passed!' when rye run ruff check . does.

$ rye lint

$ rye run ruff check .
All checks passed!

It can be confusing to the end-user who might expect rye lint to print 'All checks passed!'. You wonder if it actually ran properly?

Can rye lint be made consistent with rye run ruff check .?

mitsuhiko commented 6 months ago

That's because this is how ruff behaves today. I did not want to make too many changes here.