feat: add ruff --statistics
Issue #1814
@charliermarsh some off topic questions:
- ruff is released once a day (if there were changes)? this is done automatically?
- who are the maintainers - only you or is there a team already?
We don't have an auto-release setup. Ruff releases only happen when Charlie decides to make a release, see also https://github.com/charliermarsh/ruff/pull/2288#issuecomment-1407277090. Afaik Charlie is the only maintainer but he has been working on ruff full-time.
@spaceone - That's right -- I cut a release about once a day, but it's done manually by me. (Mostly just consists of bumping the version via commit, creating a release in GitHub, and ensuring that the GitHub Action does its job.)
I'm working on Ruff full-time. But we have a lot of contributors who are doing heavy lifting :)
This looks good, and I'll merge it as-is. But am I crazy to think that with --statistics, we should just show the statistics, and not the individual error codes? I know Flake8 shows both, but I was surprised by it, and it makes it much harder to pipe into other Unix tools (e.g., to sort the table).
(That would also resolve your question about the two JSON items.)
OK: I adjusted the branch to shows statistics only and not the individual errors.
Will you update the Readme to mention the use of this option?
@JonathanPlasse - Yeah we should probably change the --help in the README to use run check --help instead. Would that resolve it?
I think so yes.