Skip to content
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

ruff rule E could print all sub-rules of E #2812

Closed
spaceone opened this issue Feb 12, 2023 · 1 comment · Fixed by #7560
Closed

ruff rule E could print all sub-rules of E #2812

spaceone opened this issue Feb 12, 2023 · 1 comment · Fixed by #7560
Labels
cli Related to the command-line interface

Comments

@spaceone
Copy link
Contributor

$ ruff rule E1
error: invalid value 'E1' for '<RULE>': unknown rule code

→ nice would be if all sub-rules would be printed.

@charliermarsh charliermarsh added the cli Related to the command-line interface label Feb 12, 2023
@ngnpope
Copy link
Contributor

ngnpope commented Feb 12, 2023

This could be rather a lot of output. Might be nice to implement pager support?

@spaceone spaceone changed the title ruff rule E could print all sub-rules ruff rule E could print all sub-rules of E Feb 12, 2023
charliermarsh added a commit that referenced this issue Sep 21, 2023
## Summary

Writing `ruff rule E1`, then tab, shows:

<img width="724" alt="Screen Shot 2023-09-20 at 9 29 09 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/00297f24-8828-4485-a00e-6af1ab4e7875">

Closes #2812.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command-line interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants