Sync from SUSE:SLFO:Main python-ruff revision 77ced93915f79e160c6ed3d7236539fe

This commit is contained in:
2025-06-27 15:55:30 +02:00
parent 00a8c3f42c
commit a1918f749f
5 changed files with 415 additions and 241 deletions

View File

@@ -1,3 +1,177 @@
-------------------------------------------------------------------
Tue Jun 10 11:18:15 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.11.13:
* \[`airflow`\] Add unsafe fix for module moved cases
(`AIR301`,`AIR311`,`AIR312`,`AIR302`)
* \[`refurb`\] Add coverage of `set` and `frozenset` calls
(`FURB171`)
* \[`refurb`\] Mark `FURB180` fix unsafe when class has bases
* \[`fastapi`\] Avoid false positive for class dependencies
(`FAST003`)
* Support Python 3.14 template strings (t-strings) in formatter
and parser
-------------------------------------------------------------------
Fri May 30 15:05:44 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.11.12:
* Preview features
* [airflow] Revise fix titles (AIR3)
* [pylint] Implement missing-maxsplit-arg (PLC0207)
* [pyupgrade] New rule UP050 (useless-class-metaclass-type)
* [flake8-use-pathlib] Replace os.symlink with Path.symlink_to (PTH211)
* Bug fixes
* [flake8-bugbear] Ignore __debug__ attribute in B010
* [flake8-async] Fix anyio.sleep argument name (ASYNC115, ASYNC116)
* [refurb] Fix FURB129 autofix generating invalid syntax
* Rule changes
* [flake8-implicit-str-concat] Add autofix for ISC003
* [pycodestyle] Improve the diagnostic message for E712
* [flake8-2020] Fix diagnostic message for != comparisons (YTT201)
* [pyupgrade] Make fix unsafe if it deletes comments (UP010)
* Documentation
* Simplify rules table to improve readability
* Update editor integrations link in README
* [flake8-bugbear] Add fix safety section (B006)
-------------------------------------------------------------------
Fri May 23 15:14:16 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.11.11:
* Preview features
* [airflow] Add autofixes for AIR302 and AIR312
* [airflow] Move rules from AIR312 to AIR302
* [airflow] Update AIR301 and AIR311 with the latest Airflow implementations
* [flake8-simplify] Enable fix in preview mode (SIM117)
* Bug fixes
* Fix inconsistent formatting of match-case on [] and _
* [pylint] Fix PLW1514 not recognizing the encoding positional argument of codecs.open
* CLI
* Add full option name in formatter warning
* Documentation
* Fix rendering of admonition in docs
* [flake8-print] Improve print/pprint docs for T201 and T203
* [flake8-simplify] Add fix safety section (SIM110,SIM210)
* [pylint] Fix docs example that produced different output (PLW0603)
-------------------------------------------------------------------
Mon May 19 14:18:18 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update 0.11.10:
* Preview features
* [ruff] Implement a recursive check for RUF060
* [airflow] Enable autofixes for AIR301 and AIR311
* [airflow] Apply try catch guard to all AIR3 rules
* [airflow] Extend AIR311 rules
* Bug fixes
* [flake8-bugbear] Ignore B028 if skip_file_prefixes is present
* [flake8-pie] Mark autofix for PIE804 as unsafe if the dictionary contains comments
* [flake8-simplify] Correct behavior for str.split/rsplit with maxsplit=0 (SIM905)
* [flake8-simplify] Fix SIM905 autofix for rsplit creating a reversed list literal
* [flake8-use-pathlib] Suppress diagnostics for all os.* functions that have the dir_fd parameter (PTH)
* [refurb] Mark autofix as safe only for number literals (FURB116)
* Rule changes
* [flake8-bandit] Skip S608 for expressionless f-strings
* [flake8-pytest-style] Don't recommend usefixtures for parametrize values (PT019)
* [pyupgrade] Add resource.error as deprecated alias of OSError (UP024)
* CLI
* Disable jemalloc on Android
* Documentation
* Update Neovim setup docs
* [flake8-simplify] Add fix safety section (SIM103)
* [flake8-simplify] Add fix safety section (SIM112)
* [pylint] Add fix safety section (PLC0414)
* [pylint] Add fix safety section (PLE4703)
* [pylint] Add fix safety section (PLW1514)
* [pylint] Add fix safety section (PLW3301)
* [ruff] Add fix safety section (RUF007)
* [ruff] Add fix safety section (RUF033)
-------------------------------------------------------------------
Tue May 13 06:39:19 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.11.9:
* Preview features
* Default to latest supported Python version for version-related syntax errors
* Implement deferred annotations for Python 3.14
* [airflow] Fix SQLTableCheckOperator typo (AIR302)
* [airflow] Remove airflow.utils.dag_parsing_context.get_parsing_context (AIR301)
* [airflow] Skip attribute check in try catch block (AIR301)
* [flake8-bandit] Mark tuples of string literals as trusted input in S603
* [isort] Check full module path against project root(s) when categorizing first-party imports
* [ruff] Add new rule in-empty-collection (RUF060)
* Bug fixes
* Fix missing combine call for lint.typing-extensions setting
* [flake8-async] Fix module name in ASYNC110, ASYNC115, and ASYNC116 fixes
* [pyupgrade] Add spaces between tokens as necessary to avoid syntax errors in UP018 autofix
* [refurb] Fix false positive for float and complex numbers in FURB116
* [parser] Flag single unparenthesized generator expr with trailing comma in arguments.
* Documentation
* Add instructions on how to upgrade to a newer Rust version
* Update code of conduct email address
* Add fix safety sections to PLC2801, PLR1722, and RUF013
* Add link to check-typed-exception from S110 and S112
* Other changes
* Allow passing a virtual environment to ruff analyze graph
-------------------------------------------------------------------
Fri May 2 15:28:43 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.11.8
* Preview features
* \[`airflow`\] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`, `AIR311`)
* \[`airflow`\] Extend `AIR301` rule
* \[`airflow`\] Update existing `AIR302` rules with better suggestions
* \[`refurb`\] Mark fix as safe for `readlines-in-for` (`FURB129`)
* [syntax-errors] `nonlocal` declaration at module level
* [syntax-errors] Detect single starred expression assignment `x = *y`
* Bug fixes
* \[`flake8-pyi`\] Ensure `Literal[None,] | Literal[None,]` is not autofixed to `None | None` (`PYI061`)
* \[`flake8-use-pathlib`\] Avoid suggesting `Path.iterdir()` for `os.listdir` with file descriptor (`PTH208`)
* \[`flake8-use-pathlib`\] Fix `PTH104` false positive when `rename` is passed a file descriptor
* \[`flake8-use-pathlib`\] Fix `PTH116` false positive when `stat` is passed a file descriptor
* \[`flake8-use-pathlib`\] Fix `PTH123` false positive when `open` is passed a file descriptor from a function call
* \[`pycodestyle`\] Fix duplicated diagnostic in `E712`
* \[`pylint`\] Detect `global` declarations in module scope (`PLE0118`)
* [syntax-errors] Make `async-comprehension-in-sync-comprehension` more specific
* Configuration
* Add option to disable `typing_extensions` imports
* Documentation
* Fix example syntax for the `lint.pydocstyle.ignore-var-parameters` option
* Add fix safety sections (`ASYNC116`, `FLY002`, `D200`, `RUF005`, `RUF017`, `RUF027`, `RUF028`, `RUF057`)
* Other changes
* Add Python 3.14 to configuration options
* Make syntax error for unparenthesized except tuples version specific to before 3.14
-------------------------------------------------------------------
Sun Apr 27 14:51:47 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.11.7:
* \[`airflow`\] Apply auto fixes to cases where the names have
changed in Airflow 3 (`AIR301`)
* \[`perflint`\] Implement fix for `manual-dict-comprehension`
(`PERF403`)
* [syntax-errors] Make duplicate parameter names a semantic
error
* \[`flake8-type-checking`\] Visit keyword arguments in checks
involving `typing.cast`/`typing.NewType` arguments
* \[`pyupgrade`\] Preserve parenthesis when fixing native
literals containing newlines (`UP018`)
* \[`refurb`\] Mark the `FURB161` fix unsafe except for
integers and booleans
-------------------------------------------------------------------
Mon Apr 21 12:16:47 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.11.6
* Preview features
* Avoid adding whitespace to the end of a docstring after an escaped quote
* [airflow] Extract AIR311 from AIR301 rules (AIR301, AIR311)
* Bug fixes
* Raise syntax error when \ is at end of file
-------------------------------------------------------------------
Fri Apr 11 13:52:09 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.11.5
Version: 0.11.13
Release: 0
Summary: An extremely fast Python linter, written in Rust
License: MIT

BIN
ruff-0.11.13.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ruff-0.11.5.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
vendor.tar.zst (Stored with Git LFS)

Binary file not shown.