14
0
forked from pool/python-ruff

Accepting request 1295811 from devel:languages:python

- update to 0.12.5:
  * \[`flake8-use-pathlib`\] Add autofix for `PTH101`, `PTH104`,
    `PTH105`, `PTH121`
  * \[`ruff`\] Support byte strings (`RUF055`)
  * Fix `unreachable` panic in parser
  * \[`flake8-pyi`\] Skip fix if all `Union` members are `None`
    (`PYI016`)
  * \[`perflint`\] Parenthesize generator expressions (`PERF401`)
  * \[`pylint`\] Handle empty comments after line continuation
    (`PLR2044`)

      allow new fixes (TC001, TC002, TC003, UP037, RUF013)
   * [flake8-use-pathlib] Add autofix for PTH109
   * [pylint] Detect indirect pathlib.Path usages for unspecified-encoding (PLW1514)
   * [flake8-bugbear] Fix B017 false negatives for keyword exception arguments
   * [flake8-use-pathlib] Fix false negative on direct Path() instantiation (PTH210)
   * [flake8-django] Fix DJ008 false positive for abstract models with type-annotated abstract field
   * [isort] Fix I002 import insertion after docstring with multiple string statements
   * [isort] Treat form feed as valid whitespace before a semicolon
   * [pydoclint] Fix SyntaxError from fixes with line continuations (D201, D202)
   * [refurb] FURB164 fix should validate arguments and should usually be marked unsafe
   * [flake8-use-pathlib] Skip single dots for invalid-pathlib-with-suffix (PTH210) on versions >= 3.14
   * [pep8_naming] Avoid false positives on standard library functions with uppercase names (N802)
   * [pycodestyle] Handle brace escapes for t-strings in logical lines
   * [pylint] Extend invalid string character rules to include t-strings
   * [ruff] Allow strict kwarg when checking for starmap-zip (RUF058) in Python 3.14+
   * [flake8-type-checking] Make TC010 docs example more realistic
   * [flake8-bugbear] Support non-context-manager calls in B017
   * [flake8-use-pathlib] Add autofixes for PTH100, PTH106, PTH107, PTH108, PTH110, PTH111, PTH112, PTH113, PTH114, PTH115, PTH117, PTH119, PTH120
   * [flake8-use-pathlib] Add autofixes for PTH203, PTH204, PTH205

OBS-URL: https://build.opensuse.org/request/show/1295811
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=78
This commit is contained in:
2025-07-27 14:26:12 +00:00
committed by Git OBS Bridge
5 changed files with 53 additions and 39 deletions

View File

@@ -1,28 +1,42 @@
-------------------------------------------------------------------
Fri Jul 25 15:50:14 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.12.5:
* \[`flake8-use-pathlib`\] Add autofix for `PTH101`, `PTH104`,
`PTH105`, `PTH121`
* \[`ruff`\] Support byte strings (`RUF055`)
* Fix `unreachable` panic in parser
* \[`flake8-pyi`\] Skip fix if all `Union` members are `None`
(`PYI016`)
* \[`perflint`\] Parenthesize generator expressions (`PERF401`)
* \[`pylint`\] Handle empty comments after line continuation
(`PLR2044`)
-------------------------------------------------------------------
Fri Jul 18 18:45:45 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.4
* Preview features
* [flake8-type-checking, pyupgrade, ruff] Add from __future__ import annotations when it would
allow new fixes (TC001, TC002, TC003, UP037, RUF013)
* [flake8-use-pathlib] Add autofix for PTH109
* [pylint] Detect indirect pathlib.Path usages for unspecified-encoding (PLW1514)
allow new fixes (TC001, TC002, TC003, UP037, RUF013)
* [flake8-use-pathlib] Add autofix for PTH109
* [pylint] Detect indirect pathlib.Path usages for unspecified-encoding (PLW1514)
* Bug fixes
* [flake8-bugbear] Fix B017 false negatives for keyword exception arguments
* [flake8-use-pathlib] Fix false negative on direct Path() instantiation (PTH210)
* [flake8-django] Fix DJ008 false positive for abstract models with type-annotated abstract field
* [isort] Fix I002 import insertion after docstring with multiple string statements
* [isort] Treat form feed as valid whitespace before a semicolon
* [pydoclint] Fix SyntaxError from fixes with line continuations (D201, D202)
* [refurb] FURB164 fix should validate arguments and should usually be marked unsafe
* [flake8-bugbear] Fix B017 false negatives for keyword exception arguments
* [flake8-use-pathlib] Fix false negative on direct Path() instantiation (PTH210)
* [flake8-django] Fix DJ008 false positive for abstract models with type-annotated abstract field
* [isort] Fix I002 import insertion after docstring with multiple string statements
* [isort] Treat form feed as valid whitespace before a semicolon
* [pydoclint] Fix SyntaxError from fixes with line continuations (D201, D202)
* [refurb] FURB164 fix should validate arguments and should usually be marked unsafe
* Rule changes
* [flake8-use-pathlib] Skip single dots for invalid-pathlib-with-suffix (PTH210) on versions >= 3.14
* [pep8_naming] Avoid false positives on standard library functions with uppercase names (N802)
* [pycodestyle] Handle brace escapes for t-strings in logical lines
* [pylint] Extend invalid string character rules to include t-strings
* [ruff] Allow strict kwarg when checking for starmap-zip (RUF058) in Python 3.14+
* [flake8-use-pathlib] Skip single dots for invalid-pathlib-with-suffix (PTH210) on versions >= 3.14
* [pep8_naming] Avoid false positives on standard library functions with uppercase names (N802)
* [pycodestyle] Handle brace escapes for t-strings in logical lines
* [pylint] Extend invalid string character rules to include t-strings
* [ruff] Allow strict kwarg when checking for starmap-zip (RUF058) in Python 3.14+
* Documentation
* [flake8-type-checking] Make TC010 docs example more realistic
* [flake8-type-checking] Make TC010 docs example more realistic
* Make more documentation examples error out-of-the-box
-------------------------------------------------------------------
@@ -30,25 +44,25 @@ Sun Jul 13 11:33:49 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.3:
* Preview features
* [flake8-bugbear] Support non-context-manager calls in B017
* [flake8-use-pathlib] Add autofixes for PTH100, PTH106, PTH107, PTH108, PTH110, PTH111, PTH112, PTH113, PTH114, PTH115, PTH117, PTH119, PTH120
* [flake8-use-pathlib] Add autofixes for PTH203, PTH204, PTH205
* [flake8-bugbear] Support non-context-manager calls in B017
* [flake8-use-pathlib] Add autofixes for PTH100, PTH106, PTH107, PTH108, PTH110, PTH111, PTH112, PTH113, PTH114, PTH115, PTH117, PTH119, PTH120
* [flake8-use-pathlib] Add autofixes for PTH203, PTH204, PTH205
* Bug fixes
* [flake8-return] Fix false-positive for variables used inside nested functions in RET504
* Treat form feed as valid whitespace before a line continuation
* [flake8-type-checking] Fix syntax error introduced by fix (TC008)
* [pyupgrade] Keyword arguments in super should suppress the UP008 fix
* [flake8-return] Fix false-positive for variables used inside nested functions in RET504
* Treat form feed as valid whitespace before a line continuation
* [flake8-type-checking] Fix syntax error introduced by fix (TC008)
* [pyupgrade] Keyword arguments in super should suppress the UP008 fix
* Documentation
* [flake8-pyi] Make example error out-of-the-box (PYI007, PYI008)
* [flake8-simplify] Make example error out-of-the-box (SIM116)
* [flake8-type-checking] Make example error out-of-the-box (TC001)
* [flake8-use-pathlib] Make example error out-of-the-box (PTH210)
* [pycodestyle] Make example error out-of-the-box (E272)
* [pycodestyle] Make example not raise unnecessary SyntaxError (E114)
* [pydoclint] Make example error out-of-the-box (DOC501)
* [pylint, pyupgrade] Fix syntax errors in examples (PLW1501, UP028)
* [pylint] Update missing-maxsplit-arg docs and error to suggest proper usage (PLC0207)
* [flake8-bandit] Make example error out-of-the-box (S412)
* [flake8-pyi] Make example error out-of-the-box (PYI007, PYI008)
* [flake8-simplify] Make example error out-of-the-box (SIM116)
* [flake8-type-checking] Make example error out-of-the-box (TC001)
* [flake8-use-pathlib] Make example error out-of-the-box (PTH210)
* [pycodestyle] Make example error out-of-the-box (E272)
* [pycodestyle] Make example not raise unnecessary SyntaxError (E114)
* [pydoclint] Make example error out-of-the-box (DOC501)
* [pylint, pyupgrade] Fix syntax errors in examples (PLW1501, UP028)
* [pylint] Update missing-maxsplit-arg docs and error to suggest proper usage (PLC0207)
* [flake8-bandit] Make example error out-of-the-box (S412)
-------------------------------------------------------------------
Fri Jul 4 11:36:37 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -19,7 +19,7 @@
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-ruff
Version: 0.12.4
Version: 0.12.5
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:13efa16df6c6eeb7d0f091abae50f58e9522f3843edb40d56ad52a5a4a4b6873
size 5131435

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

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

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:07d18bb30cd86cedd4a6f1debc959c1e141b291e0a317fdb6e5a9464ad62b977
size 31809023
oid sha256:d762059a765edae3c0f8dc2927b4c2508594c46aa91664796e225cf4ec16fc5c
size 29879832