14
0
forked from pool/python-black

- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-black?expand=0&rev=54
This commit is contained in:
2024-01-02 08:21:00 +00:00
committed by Git OBS Bridge
parent de20fda3d9
commit 01dcc94d86
4 changed files with 33 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-black
Version: 23.11.0
Version: 23.12.1
Release: 0
Summary: A code formatter written in, and written for Python
License: MIT