Accepting request 1236832 from devel:languages:python

- update to 0.9.0:
  * This release introduces the new 2025 stable style (#13371),
    stabilizing the following changes:
  * Format expressions in f-string elements
  * Alternate quotes for strings inside f-strings
  * Preserve the casing of hex codes in f-string debug
    expressions
  * Choose the quote style for each string literal in an
    implicitly concatenated f-string rather than for the entire
    string
  * Automatically join an implicitly concatenated string into a
    single string literal if it fits on a single line
  * Remove the `ISC001` incompatibility warning
  * Prefer parenthesizing the `assert` message over breaking the
    assertion expression
  * Automatically parenthesize over-long `if` guards in `match`
    `case` clauses
  * More consistent formatting for `match` `case` patterns
  * Avoid unnecessary parentheses around return type annotations
  * Keep the opening parentheses on the same line as the `if`
    keyword for comprehensions where the condition has a leading
    comment
  * More consistent formatting for `with` statements with a
    single context manager for Python 3.8 or older
  * Correctly calculate the line-width for code blocks in
    docstrings when using `max-doc-code-line-length = "dynamic"`

- update to 0.8.6
   * [format]: Preserve multiline implicit concatenated strings in docstring positions
   * [ruff] Add rule to detect empty literal in deque call (RUF025)

OBS-URL: https://build.opensuse.org/request/show/1236832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=52
This commit is contained in:
Ana Guerrero 2025-01-12 10:08:44 +00:00 committed by Git OBS Bridge
commit 091bedcd6d
5 changed files with 273 additions and 243 deletions

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Fri Jan 10 10:47:59 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.9.0:
* This release introduces the new 2025 stable style (#13371),
stabilizing the following changes:
* Format expressions in f-string elements
* Alternate quotes for strings inside f-strings
* Preserve the casing of hex codes in f-string debug
expressions
* Choose the quote style for each string literal in an
implicitly concatenated f-string rather than for the entire
string
* Automatically join an implicitly concatenated string into a
single string literal if it fits on a single line
* Remove the `ISC001` incompatibility warning
* Prefer parenthesizing the `assert` message over breaking the
assertion expression
* Automatically parenthesize over-long `if` guards in `match`
`case` clauses
* More consistent formatting for `match` `case` patterns
* Avoid unnecessary parentheses around return type annotations
* Keep the opening parentheses on the same line as the `if`
keyword for comprehensions where the condition has a leading
comment
* More consistent formatting for `with` statements with a
single context manager for Python 3.8 or older
* Correctly calculate the line-width for code blocks in
docstrings when using `max-doc-code-line-length = "dynamic"`
-------------------------------------------------------------------
Mon Jan 6 09:54:30 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -19,7 +19,7 @@
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-ruff
Version: 0.8.6
Version: 0.9.0
Release: 0
Summary: An extremely fast Python linter, written in Rust
License: MIT

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dcad24b81b62650b0eb8814f576fc65cfee8674772a6e24c9b747911801eeaa5
size 3473116

3
ruff-0.9.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:143f68fa5560ecf10fc49878b73cee3eab98b777fcf43b0e62d43d42f5ef9d8b
size 3489167

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c38d991b76b57438a0cb6ff91ece09e2165b81c75400aba338d611ae571dd350
size 29793334
oid sha256:7abd25601b7637efe069ac290c7d8eb2f906a35dafaab8acded52f4cfd40f3bc
size 29787870