Sync from SUSE:SLFO:Main python-black revision ba14a94ba7b7935d8cc66095e1e1a03f
This commit is contained in:
parent
48801a6380
commit
8e4af26461
BIN
black-23.9.1.tar.gz
(Stored with Git LFS)
BIN
black-23.9.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
black-24.4.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
black-24.4.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,200 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 21 16:03:44 UTC 2024 - Andrea Manzini <andrea.manzini@suse.com>
|
||||||
|
|
||||||
|
- update to 24.4.2
|
||||||
|
* Fix regression where certain complex f-strings failed to parse
|
||||||
|
* Fix bad performance on certain complex string literals
|
||||||
|
- update to 24.4.1
|
||||||
|
* Add support for the new Python 3.12 f-string syntax introduced by PEP 701
|
||||||
|
* Fix crash involving indented dummy functions containing newlines
|
||||||
|
* Add support for type parameter defaults, a new syntactic feature added
|
||||||
|
to Python 3.13 by PEP 696
|
||||||
|
- update to 24.4.0
|
||||||
|
* Fix unwanted crashes caused by AST equivalency check
|
||||||
|
* if guards in case blocks are now wrapped in parentheses when the line is too long.
|
||||||
|
* Stop moving multiline strings to a new line unless inside brackets
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 17 19:11:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 24.3.0 (bsc#1221530, CVE-2024-21503):
|
||||||
|
* Don't move comments along with delimiters, which could cause
|
||||||
|
crashes
|
||||||
|
* Strengthen AST safety check to catch more unsafe changes to
|
||||||
|
strings. Previous versions of Black would incorrectly format
|
||||||
|
the contents of certain unusual f-strings containing
|
||||||
|
nested strings with the same quote type. Now, Black will
|
||||||
|
crash on such strings until support for the new f-string syntax
|
||||||
|
is implemented.
|
||||||
|
* Fix a bug where line-ranges exceeding the last code line
|
||||||
|
would not work as expected
|
||||||
|
* Fix catastrophic performance on docstrings that contain large
|
||||||
|
numbers of leading tab characters. This fixes CVE-2024-21503.
|
||||||
|
* Note what happens when `--check` is used with `--quiet`
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 22 13:28:34 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 24.2.0
|
||||||
|
* Consistently add trailing comma on typed parameters (#4164)
|
||||||
|
* Fixed a bug where comments where mistakenly removed along with
|
||||||
|
redundant parentheses (#4218)
|
||||||
|
* Move the hug_parens_with_braces_and_square_brackets feature to
|
||||||
|
the unstable style due to an outstanding crash and proposed
|
||||||
|
formatting tweaks (#4198)
|
||||||
|
* Black now ignores pyproject.toml that is missing a [tool.black]
|
||||||
|
section when discovering project root and configuration.
|
||||||
|
* More changes, see upstream CHANGES.md
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 29 08:51:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
style has included some features that we were not able to
|
||||||
|
stabilize. This year, we're adding a separate `--unstable`
|
||||||
|
style for features with known problems. Now, the `--preview`
|
||||||
|
style only includes features that we actually expect to make
|
||||||
|
it into next year's stable style.
|
||||||
|
* Fix comment handling when parenthesising conditional
|
||||||
|
expressions
|
||||||
|
* Fix bug where spaces were not added around parenthesized
|
||||||
|
walruses in subscripts, unlike other binary operators
|
||||||
|
* Remove empty lines before docstrings in async functions
|
||||||
|
* Address a missing case in the change to allow empty lines at
|
||||||
|
the beginning of all blocks, except immediately before a
|
||||||
|
docstring
|
||||||
|
* For stubs, fix logic to enforce empty line after nested
|
||||||
|
classes with bodies
|
||||||
|
* Add `--unstable` style, covering preview features that have
|
||||||
|
known problems that would block them from going into the
|
||||||
|
stable style. Also add the `--enable-unstable-feature`
|
||||||
|
flag; for example, use `--enable-unstable-feature
|
||||||
|
hug_parens_with_braces_and_square_brackets` to apply this
|
||||||
|
preview feature throughout 2024, even if a later Black
|
||||||
|
release downgrades the feature to unstable
|
||||||
|
* Format module docstrings the same as class and function
|
||||||
|
docstrings
|
||||||
|
* Fix crash when using a walrus in a dictionary
|
||||||
|
* Fix unnecessary parentheses when wrapping long dicts
|
||||||
|
* Stop normalizing spaces before `# fmt: skip` comments
|
||||||
|
* Print warning when configuration in `pyproject.toml` contains
|
||||||
|
an invalid key
|
||||||
|
* Fix symlink handling, properly ignoring symlinks that point
|
||||||
|
outside of root
|
||||||
|
* Fix cache mtime logic that resulted in false positive cache
|
||||||
|
hits
|
||||||
|
* Remove the long-deprecated `--experimental-string-processing`
|
||||||
|
flag. This feature can currently be enabled with `--preview
|
||||||
|
--enable-unstable- feature string_processing`.
|
||||||
|
* Revert the change to run Black's pre-commit integration only
|
||||||
|
on specific git hooks (#3940) for better compatibility with
|
||||||
|
older versions of pre-commit
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 2 08:19:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 23.12.1:
|
||||||
|
* Fixed a bug that included dependencies from the `d` extra by
|
||||||
|
default
|
||||||
|
* This release (23.12.0) will still produce the 2023 style.
|
||||||
|
Most but not all of the changes in `--preview` mode will be
|
||||||
|
in the 2024 stable style.
|
||||||
|
* Fix bug where `# fmt: off` automatically dedents when used
|
||||||
|
with the `--line-ranges` option, even when it is not within
|
||||||
|
the specified line range.
|
||||||
|
* Fix feature detection for parenthesized context managers
|
||||||
|
* Prefer more equal signs before a break when splitting chained
|
||||||
|
assignments
|
||||||
|
* Standalone form feed characters at the module level are no
|
||||||
|
longer removed
|
||||||
|
* Additional cases of immediately nested tuples, lists, and
|
||||||
|
dictionaries are now indented less
|
||||||
|
* Allow empty lines at the beginning of all blocks, except
|
||||||
|
immediately before a docstring
|
||||||
|
* Fix crash in preview mode when using a short `--line-length`
|
||||||
|
* Keep suites consisting of only an ellipsis on their own lines
|
||||||
|
if they are not functions or class definitions
|
||||||
|
* `--line-ranges` now skips _Black_'s internal stability check
|
||||||
|
in `--safe` mode. This avoids a crash on rare inputs that have
|
||||||
|
many unformatted same-content lines.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 16 17:31:29 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 23.11.0:
|
||||||
|
* Support formatting ranges of lines with the new `--line-
|
||||||
|
ranges` command-line option
|
||||||
|
* Fix crash on formatting bytes strings that look like
|
||||||
|
docstrings (#4003)
|
||||||
|
* Fix crash when whitespace followed a backslash before newline
|
||||||
|
in a docstring (#4008)
|
||||||
|
* Fix standalone comments inside complex blocks crashing Black
|
||||||
|
* Fix crash on formatting code like `await (a ** b)` (#3994)
|
||||||
|
* No longer treat leading f-strings as docstrings. This matches
|
||||||
|
Python's behaviour and fixes a crash (#4019)
|
||||||
|
* Consistently apply force exclusion logic before resolving
|
||||||
|
symlinks (#4015)
|
||||||
|
* Fix a bug in the matching of absolute path names in
|
||||||
|
`--include` (#3976)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 24 16:05:14 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 23.10.1:
|
||||||
|
* Maintanence release to get a fix out for GitHub Action edge
|
||||||
|
case (#3957)
|
||||||
|
* Fix merging implicit multiline strings that have inline
|
||||||
|
comments (#3956)
|
||||||
|
* Allow empty first line after block open before a comment or
|
||||||
|
compound statement (#3967)
|
||||||
|
* Fix comments getting removed from inside parenthesized
|
||||||
|
strings (#3909)
|
||||||
|
* Fix long lines with power operators getting split before the
|
||||||
|
line length (#3942)
|
||||||
|
* Long type hints are now wrapped in parentheses and properly
|
||||||
|
indented when split across multiple lines (#3899)
|
||||||
|
* Magic trailing commas are now respected in return types.
|
||||||
|
* Require one empty line after module-level docstrings. (#3932)
|
||||||
|
* Treat raw triple-quoted strings as docstrings (#3947)
|
||||||
|
* Fix bug where attributes named `type` were not accepted
|
||||||
|
inside `match` statements
|
||||||
|
* Add support for PEP 695 type aliases containing lambdas and
|
||||||
|
other unusual expressions
|
||||||
|
* Black no longer attempts to provide special errors for
|
||||||
|
attempting to format Python 2 code (#3933)
|
||||||
|
* Black will more consistently print stacktraces on internal
|
||||||
|
errors in verbose mode
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 19 14:51:16 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Tue Sep 19 14:51:16 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-black
|
# spec file for package python-black
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-black
|
Name: python-black
|
||||||
Version: 23.9.1
|
Version: 24.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A code formatter written in, and written for Python
|
Summary: A code formatter written in, and written for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
|
Loading…
Reference in New Issue
Block a user