Overview

Request 1142193 accepted

- update to 24.1.0:
* Add parentheses around `if`-`else` expressions
* Dummy class and function implementations consisting only of
`...` are formatted more compactly
* If an assignment statement is too long, we now prefer
splitting on the right-hand side
* Hex codes in Unicode escape sequences are now standardized to
lowercase
* Allow empty first lines at the beginning of most blocks
* Add parentheses around long type annotations
* Enforce newline after module docstrings
* Fix incorrect magic trailing comma handling in return types
* Remove blank lines before class docstrings
* Wrap multiple context managers in parentheses if combined in
a single `with` statement
* Fix bug in line length calculations for power operations
* Add trailing commas to collection literals even if there's a
comment after the last entry
* When using `--skip-magic-trailing-comma` or `-C`, trailing
commas are stripped from subscript expressions with more than
1 element
* Add extra blank lines in stubs in a few cases
* Accept raw strings as docstrings
* Split long lines in case blocks
* Stop removing spaces from walrus operators within subscripts
* Fix incorrect formatting of certain async statements
* Allow combining `# fmt: skip` with other comments
* There are already a few improvements in the `--preview`
style, which are slated for the 2025 stable style. Try them
out and share your feedback. In the past, the preview

Loading...
Request History
Dirk Mueller's avatar

dirkmueller created request

- update to 24.1.0:
* Add parentheses around `if`-`else` expressions
* Dummy class and function implementations consisting only of
`...` are formatted more compactly
* If an assignment statement is too long, we now prefer
splitting on the right-hand side
* Hex codes in Unicode escape sequences are now standardized to
lowercase
* Allow empty first lines at the beginning of most blocks
* Add parentheses around long type annotations
* Enforce newline after module docstrings
* Fix incorrect magic trailing comma handling in return types
* Remove blank lines before class docstrings
* Wrap multiple context managers in parentheses if combined in
a single `with` statement
* Fix bug in line length calculations for power operations
* Add trailing commas to collection literals even if there's a
comment after the last entry
* When using `--skip-magic-trailing-comma` or `-C`, trailing
commas are stripped from subscript expressions with more than
1 element
* Add extra blank lines in stubs in a few cases
* Accept raw strings as docstrings
* Split long lines in case blocks
* Stop removing spaces from walrus operators within subscripts
* Fix incorrect formatting of certain async statements
* Allow combining `# fmt: skip` with other comments
* There are already a few improvements in the `--preview`
style, which are slated for the 2025 stable style. Try them
out and share your feedback. In the past, the preview


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Dominique Leuenberger's avatar

dimstar accepted review

ok


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:L as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:L"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:L"


Saul Goodman's avatar

licensedigger accepted review

The legal review is accepted preliminary. The package may require actions later on.


Ana Guerrero's avatar

anag+factory accepted review

Staging Project openSUSE:Factory:Staging:L got accepted.


Ana Guerrero's avatar

anag+factory approved review

Staging Project openSUSE:Factory:Staging:L got accepted.


Ana Guerrero's avatar

anag+factory accepted request

Staging Project openSUSE:Factory:Staging:L got accepted.

openSUSE Build Service is sponsored by