14
0
forked from pool/python-ruff

- update to 0.12.1

* Preview features
   * [flake8-errmsg] Extend EM101 to support byte strings 
   * [flake8-use-pathlib] Add autofix for PTH202 
   * [pygrep-hooks] Add AsyncMock methods to invalid-mock-access (PGH005) 
   * [pylint] Ignore __init__.py files in (PLC0414) 
   * [ruff] Trigger RUF037 for empty string and byte strings 
   * [formatter] Fix missing blank lines before decorated classes in .pyi files 
 * Bug fixes
   * Avoid generating diagnostics with per-file ignores 
   * Handle parenthesized arguments in remove_argument 
   * [flake8-logging] Avoid false positive for exc_info=True outside logger.exception (LOG014) 
   * [flake8-pytest-style] Enforce pytest import for decorators 
   * [flake8-pytest-style] Mark autofix for PT001 and PT023 as unsafe if there's comments in the decorator 
   * [flake8-pytest-style] PT001/PT023 fix makes syntax error on parenthesized decorator 
   * [flake8-raise] Make fix unsafe if it deletes comments (RSE102) 
   * [flake8-simplify] Fix SIM911 autofix creating a syntax error 
   * [flake8-simplify] Fix false negatives for shadowed bindings (SIM910, SIM911) 
   * [flake8-simplify] Preserve original behavior for except () and bare except (SIM105) 
   * [flake8-pyi] Fix PYI041's fix causing TypeError with None | None | ... 
   * [perflint] Fix PERF101 autofix creating a syntax error and mark autofix as unsafe if there are comments in the list call expr 
   * [perflint] Fix false negative in PERF401 
   * [pylint] Avoid flattening nested min/max when outer call has single argument (PLW3301) 
   * [pylint] Fix PLC2801 autofix creating a syntax error 
   * [pylint] Mark PLE0241 autofix as unsafe if there's comments in the base classes 
   * [pylint] Suppress PLE2510/PLE2512/PLE2513/PLE2514/PLE2515 autofix if the text contains an odd number of backslashes 
   * [refurb] Detect more exotic float literals in FURB164 
   * [refurb] Fix FURB163 autofix creating a syntax error for yield expressions 
   * [refurb] Mark FURB129 autofix as unsafe if there's comments in the readlines call 
   * [ruff] Fix false positives and negatives in RUF010

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=159
This commit is contained in:
2025-06-28 16:33:02 +00:00
committed by Git OBS Bridge
parent 8b7c6fb605
commit 67edae790f
5 changed files with 73 additions and 6 deletions

View File

@@ -1,3 +1,70 @@
-------------------------------------------------------------------
Sat Jun 28 16:22:10 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.1
* Preview features
* [flake8-errmsg] Extend EM101 to support byte strings
* [flake8-use-pathlib] Add autofix for PTH202
* [pygrep-hooks] Add AsyncMock methods to invalid-mock-access (PGH005)
* [pylint] Ignore __init__.py files in (PLC0414)
* [ruff] Trigger RUF037 for empty string and byte strings
* [formatter] Fix missing blank lines before decorated classes in .pyi files
* Bug fixes
* Avoid generating diagnostics with per-file ignores
* Handle parenthesized arguments in remove_argument
* [flake8-logging] Avoid false positive for exc_info=True outside logger.exception (LOG014)
* [flake8-pytest-style] Enforce pytest import for decorators
* [flake8-pytest-style] Mark autofix for PT001 and PT023 as unsafe if there's comments in the decorator
* [flake8-pytest-style] PT001/PT023 fix makes syntax error on parenthesized decorator
* [flake8-raise] Make fix unsafe if it deletes comments (RSE102)
* [flake8-simplify] Fix SIM911 autofix creating a syntax error
* [flake8-simplify] Fix false negatives for shadowed bindings (SIM910, SIM911)
* [flake8-simplify] Preserve original behavior for except () and bare except (SIM105)
* [flake8-pyi] Fix PYI041's fix causing TypeError with None | None | ...
* [perflint] Fix PERF101 autofix creating a syntax error and mark autofix as unsafe if there are comments in the list call expr
* [perflint] Fix false negative in PERF401
* [pylint] Avoid flattening nested min/max when outer call has single argument (PLW3301)
* [pylint] Fix PLC2801 autofix creating a syntax error
* [pylint] Mark PLE0241 autofix as unsafe if there's comments in the base classes
* [pylint] Suppress PLE2510/PLE2512/PLE2513/PLE2514/PLE2515 autofix if the text contains an odd number of backslashes
* [refurb] Detect more exotic float literals in FURB164
* [refurb] Fix FURB163 autofix creating a syntax error for yield expressions
* [refurb] Mark FURB129 autofix as unsafe if there's comments in the readlines call
* [ruff] Fix false positives and negatives in RUF010
* Fix casing of analyze.direction variant names
* Rule changes
* Fix f-string interpolation escaping in generated fixes
* [flake8-return] Mark RET501 fix unsafe if comments are inside
* [flake8-async] Fix detection for large integer sleep durations in ASYNC116 rule
* [flake8-async] Mark autofix for ASYNC115 as unsafe if the call expression contains comments
* [flake8-bugbear] Mark autofix for B004 as unsafe if the hasattr call expr contains comments
* [flake8-comprehension] Mark autofix for C420 as unsafe if there's comments inside the dict comprehension
* [flake8-comprehensions] Handle template strings for comprehension fixes
* [flake8-future-annotations] Add autofix (FA100)
* [pyflakes] Mark F504/F522/F523 autofix as unsafe if there's a call with side effect
* [pylint] Allow fix with comments and document performance implications (PLW3301)
* [pylint] Detect more exotic NaN literals in PLW0177
* [pylint] Fix PLC1802 autofix creating a syntax error and mark autofix as unsafe if there's comments in the len call
* [pyupgrade] Extend version detection to include sys.version_info.major (UP036)
* [ruff] Add lint rule RUF064 for calling chmod with non-octal integers
* [ruff] Added cls.__dict__.get('__annotations__') check (RUF063)
* [ruff] Frozen dataclass default should be valid (RUF009)
* Server
* Consider virtual path for various server actions
* Documentation
* Add fix safety section
* Use updated pre-commit id
* [perflint] Small docs improvement to PERF401
* [pyupgrade]: Use super(), not __super__ in error messages (UP008)
* [flake8-pie] Small docs fix to PIE794
* [flake8-pyi] Correct collections-named-tuple example to use PascalCase assignment
* [flake8-pie] Add note on type checking benefits to unnecessary-dict-kwargs (PIE804)
* [pycodestyle] Clarify PEP 8 relationship to whitespace-around-operator rules
* Other changes
* Disallow newlines in format specifiers of single quoted f- or t-strings
* [flake8-logging] Add fix safety section to LOG002
* [pyupgrade] Add fix safety section to UP010
-------------------------------------------------------------------
Tue Jun 17 22:36:39 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.12.0
Version: 0.12.1
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:4d047db3662418d4a848a3fdbfaf17488b34b62f527ed6f10cb8afd78135bc5c
size 4376101

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

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

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b860697b0a70ef481660eb0b1d738a9dee6da9b99284c84f5944e4c1c4654bd
size 29512427
oid sha256:4f05158d3ec58df836627955461134ebdbf9a02cdab9abbf0ceafff2d9fa2b3f
size 29522343