python-black
No description set
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
11
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:16.0:FactoryCandidates/python-black && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
black-24.1.0.tar.gz | 0000622911 608 KB | |
python-black.changes | 0000032135 31.4 KB | |
python-black.spec | 0000004083 3.99 KB |
Revision 25 (latest revision is 30)
Ana Guerrero (anag+factory)
accepted
request 1142193
from
Dirk Mueller (dirkmueller)
(revision 25)
- 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
Comments 0