Replies: 5 comments 7 replies
-
|
Upvote this comment if you like this preview style and would adopt it in your codebase. |
Beta Was this translation helpful? Give feedback.
-
|
Upvote this comment if stabilizing this style would cause you not to upgrade Ruff to the next minor version. |
Beta Was this translation helpful? Give feedback.
-
I think there is another reasonable position not covered above: Preferring the currently stable style (*), but also not wanting to miss out on bugfixes and other new features in new versions of ruff. So still upgrading on balance, but perhaps less-than-eagerly. (*) or maybe just preferring not to change the style, due to large diffs. |
Beta Was this translation helpful? Give feedback.
-
|
I have been waiting for this style to stabilize for several years now, and would like to start using it even though it is not yet stable, as it has major readability benefits for some of our code. Is it possible to ONLY enable this one rule in preview mode? |
Beta Was this translation helpful? Give feedback.
-
|
If this rule were stabilized, it's not going to prevent me upgrading ruff, but I do find this new preview rule less readable as it makes it harder for me to see the data structure within the parentheses. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For quite a while, Ruff has offered the following preview style:
We have hesitated to stabilize it because it creates quite a large diff and because it is not stabilized in Black.
The purpose of this discussion is to solicit feedback from the community about this style and whether we should stabilize it. The main questions (which I will put as comments below that you can upvote) are essentially:
The third possibility is that you like this style but think it has some bugs or needs refinement (perhaps one of these open issues), in which case please comment below!
For reference, here is the original issue and the PR implementing the style.
Beta Was this translation helpful? Give feedback.
All reactions