-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
docs: all flake8-comprehension
rules
#3631
docs: all flake8-comprehension
rules
#3631
Conversation
@@ -31,6 +31,7 @@ use super::helpers; | |||
/// | |||
/// This rule applies to a variety of functions, including `list`, `reversed`, | |||
/// `set`, `sorted`, and `tuple`. For example: | |||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done to avoid grouping all the list elements into a single line: https://beta.ruff.rs/docs/rules/unnecessary-double-cast-or-process/
I generated the docs locally and confirmed that the elements are now rendered as required.
@@ -32,6 +32,7 @@ use super::helpers; | |||
/// | |||
/// This rule also applies to `map` calls within `list`, `set`, and `dict` | |||
/// calls. For example: | |||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above: https://beta.ruff.rs/docs/rules/unnecessary-map/
flake8-comprehension
rules
PR Check ResultsEcosystem✅ ecosystem check detected no changes. BenchmarkLinux
Windows
|
Awesome, thanks for taking this on. Just request a review from me whenever it's ready :) |
@charliermarsh Review request |
Created an initial draft for this, will go over them once more and make it ready to review.
#2646