diff --git a/python-ruff.changes b/python-ruff.changes index 7279e55..0a18ce4 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,45 +1,59 @@ +------------------------------------------------------------------- +Tue Jun 10 11:18:15 UTC 2025 - Dirk Müller + +- 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 - 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) + * [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 + * [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) + * [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) + * 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 - 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) + * [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 + * 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 + * Add full option name in formatter warning * Documentation - * Fix rendering of admonition in docs - * [flake8-print] Improve print/pprint docs for T201 and T203 + * 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) + * [pylint] Fix docs example that produced different output (PLW0603) ------------------------------------------------------------------- @@ -47,60 +61,60 @@ Mon May 19 14:18:18 UTC 2025 - Ondřej Súkup - 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 + * [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) + * [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) + * [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 + * 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) + * 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 - 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) + * 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. + * 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 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 + * Add link to check-typed-exception from S110 and S112 * Other changes - * Allow passing a virtual environment to ruff analyze graph + * Allow passing a virtual environment to ruff analyze graph ------------------------------------------------------------------- Fri May 2 15:28:43 UTC 2025 - Ondřej Súkup @@ -108,28 +122,28 @@ Fri May 2 15:28:43 UTC 2025 - Ondřej Súkup - 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` + * \[`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 + * \[`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 + * 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`) + * 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 + * 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 diff --git a/python-ruff.spec b/python-ruff.spec index e060cc1..5f23617 100644 --- a/python-ruff.spec +++ b/python-ruff.spec @@ -19,7 +19,7 @@ %bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-ruff -Version: 0.11.12 +Version: 0.11.13 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/ruff-0.11.12.tar.gz b/ruff-0.11.12.tar.gz deleted file mode 100644 index bbe6477..0000000 --- a/ruff-0.11.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:43cf7f69c7d7c7d7513b9d59c5d8cafd704e05944f978614aa9faff6ac202603 -size 4202289 diff --git a/ruff-0.11.13.tar.gz b/ruff-0.11.13.tar.gz new file mode 100644 index 0000000..957673f --- /dev/null +++ b/ruff-0.11.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26fa247dc68d1d4e72c179e08889a25ac0c7ba4d78aecfc835d49cbfd60bf514 +size 4282054 diff --git a/vendor.tar.zst b/vendor.tar.zst index 5787f9d..91d646d 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:772c9299d609e340c79cb13489c410afadccd8d8d0aed695a3f9ffb10fe33ed6 -size 25554484 +oid sha256:b4f5e0a013c1631923d2f9879b64598c06baf5e96542bd63694eb8681c8aadfb +size 25469387