Kevin J Dolan

Results 7 comments of Kevin J Dolan

@Martin19037 @MichaReiser I know that philosophical consensus has not been reached, but I submitted a PR that I think roughly covers a good solution. Happy to debate on merits, but...

I would like to open the debate again here. My PR implementation is as follows: ``` Added comprehension-line-break with two modes: "auto" (default): Current behavior - collapses comprehensions to single...

I think that simply allowing the preservation of line breaks when the developer makes the decision to break the lines along the comprehension keywords (which is what I did in...

Please see this repo for analysis code. It's rough, but I think it paints a broad picture of the community's common practices: https://github.com/kevind-kizen/python-comprehension-analysis Report output: ``` ====================================================================== COMPREHENSION ANALYSIS REPORT...

@MichaReiser **TLDR:** About 1/4 of all comprehensions across 943 github repos were multi-line. I think this demonstrates substantial community adoption of the pattern and warrants being supported by the ruff...

Good point -- I am not excluding those in this analysis. I added a heuristic to check for possible formatting with black/ruff. It definitely does significantly skew the output. Overall,...

@MichaReiser Any update on your implementation? I'd love to see really any movement on this as my new company uses the ruff formatter and this has been an important personal...