26 Commits

Author SHA256 Message Date
f07026ad1f Accepting request 1302894 from devel:languages:python
- update to 0.12.12:
  * Show fixes by default
  * [`airflow`] Convert `DatasetOrTimeSchedule(datasets=...)`
    to `AssetOrTimeSchedule(assets=...)` (`AIR311`)
  * [`airflow`] Improve the `AIR002` error message
  * [`airflow`] Move
    `airflow.operators.postgres_operator.Mapping` from `AIR302`
    to `AIR301`
  * [`flake8-async`] Implement `blocking-input` rule
    (`ASYNC250`)
  * [`flake8-use-pathlib`] Make `PTH119` and `PTH120` fixes
    unsafe because they can change behavior
  * [`pylint`] Add U+061C to `PLE2502`
  * [`ruff`] Fix false negative for empty f-strings in `deque`
    calls (`RUF037`)
  * Less confidently mark f-strings as empty when inferring
    truthiness
  * [`fastapi`] Fix false positive for paths with spaces around
    parameters (`FAST003`)
  * [`flake8-comprehensions`] Skip `C417` when lambda contains
    `yield`/`yield from`
  * [`perflint`] Handle tuples in dictionary comprehensions
    (`PERF403`)

- update to 0.12.11
  * [airflow] Extend AIR311 and AIR312 rules
  * [airflow] Replace wrong path airflow.io.storage with airflow.io.store (AIR311)
  * [flake8-async] Implement blocking-http-call-httpx-in-async-function (ASYNC212)
  * [flake8-logging-format] Add auto-fix for f-string logging calls (G004)
  * [flake8-use-pathlib] Add autofix for PTH211

OBS-URL: https://build.opensuse.org/request/show/1302894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=85
2025-09-05 19:42:34 +00:00
c930114ffb - update to 0.12.12:
* Show fixes by default
  * [`airflow`] Convert `DatasetOrTimeSchedule(datasets=...)`
    to `AssetOrTimeSchedule(assets=...)` (`AIR311`)
  * [`airflow`] Improve the `AIR002` error message
  * [`airflow`] Move
    `airflow.operators.postgres_operator.Mapping` from `AIR302`
    to `AIR301`
  * [`flake8-async`] Implement `blocking-input` rule
    (`ASYNC250`)
  * [`flake8-use-pathlib`] Make `PTH119` and `PTH120` fixes
    unsafe because they can change behavior
  * [`pylint`] Add U+061C to `PLE2502`
  * [`ruff`] Fix false negative for empty f-strings in `deque`
    calls (`RUF037`)
  * Less confidently mark f-strings as empty when inferring
    truthiness
  * [`fastapi`] Fix false positive for paths with spaces around
    parameters (`FAST003`)
  * [`flake8-comprehensions`] Skip `C417` when lambda contains
    `yield`/`yield from`
  * [`perflint`] Handle tuples in dictionary comprehensions
    (`PERF403`)
- update to 0.12.11
 * Preview features
  * [airflow] Extend AIR311 and AIR312 rules
  * [airflow] Replace wrong path airflow.io.storage with airflow.io.store (AIR311)
  * [flake8-async] Implement blocking-http-call-httpx-in-async-function (ASYNC212)
  * [flake8-logging-format] Add auto-fix for f-string logging calls (G004)
  * [flake8-use-pathlib] Add autofix for PTH211

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=181
2025-09-05 09:25:05 +00:00
73c41b3e7d Accepting request 1302462 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1302462
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=84
2025-09-03 19:07:09 +00:00
2bc859592b - Update vendor tarball to fix CVE-2025-58160 (bsc#1249011)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=179
2025-09-02 15:30:54 +00:00
5d8fda79b2 Accepting request 1301841 from devel:languages:python
- update to 0.12.11 
 * Preview features
  * [airflow] Extend AIR311 and AIR312 rules 
  * [airflow] Replace wrong path airflow.io.storage with airflow.io.store (AIR311) 
  * [flake8-async] Implement blocking-http-call-httpx-in-async-function (ASYNC212) 
  * [flake8-logging-format] Add auto-fix for f-string logging calls (G004) 
  * [flake8-use-pathlib] Add autofix for PTH211 
  * [flake8-use-pathlib] Make PTH100 fix unsafe because it can change behavior 
 * Bug fixes
  * [pyflakes, pylint] Fix false positives caused by __class__ cell handling (F841, PLE0117) 
  * [pyflakes] Fix allowed-unused-imports matching for top-level modules (F401) 
  * [ruff] Fix false positive for t-strings in default-factory-kwarg (RUF026) 
  * [ruff] Preserve relative whitespace in multi-line expressions (RUF033) 
 * Rule changes
  * [ruff] Handle empty t-strings in unnecessary-empty-iterable-within-deque-call (RUF037) 
 * Documentation
  * Fix incorrect D413 links in docstrings convention FAQ 
  * [flake8-use-pathlib] Update links to the table showing the correspondence between os and pathlib

OBS-URL: https://build.opensuse.org/request/show/1301841
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=83
2025-08-29 16:34:47 +00:00
18e8d4ed54 - update to 0.12.11
* Preview features
  * [airflow] Extend AIR311 and AIR312 rules 
  * [airflow] Replace wrong path airflow.io.storage with airflow.io.store (AIR311) 
  * [flake8-async] Implement blocking-http-call-httpx-in-async-function (ASYNC212) 
  * [flake8-logging-format] Add auto-fix for f-string logging calls (G004) 
  * [flake8-use-pathlib] Add autofix for PTH211 
  * [flake8-use-pathlib] Make PTH100 fix unsafe because it can change behavior 
 * Bug fixes
  * [pyflakes, pylint] Fix false positives caused by __class__ cell handling (F841, PLE0117) 
  * [pyflakes] Fix allowed-unused-imports matching for top-level modules (F401) 
  * [ruff] Fix false positive for t-strings in default-factory-kwarg (RUF026) 
  * [ruff] Preserve relative whitespace in multi-line expressions (RUF033) 
 * Rule changes
  * [ruff] Handle empty t-strings in unnecessary-empty-iterable-within-deque-call (RUF037) 
 * Documentation
  * Fix incorrect D413 links in docstrings convention FAQ 
  * [flake8-use-pathlib] Update links to the table showing the correspondence between os and pathlib

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=177
2025-08-28 22:03:24 +00:00
1e592ccd24 Accepting request 1300962 from devel:languages:python
- update to 0.12.10
 * Preview features
  * [flake8-simplify] Implement fix for maxsplit without separator (SIM905) 
  * [flake8-use-pathlib] Add fixes for PTH102 and PTH103 
 * Bug fixes
  * [isort] Handle multiple continuation lines after module docstring (I002) 
  * [pyupgrade] Avoid reporting __future__ features as unnecessary when they are used (UP010) 
  * [pyupgrade] Handle nested Optionals (UP045) 
 * Rule changes
  * [pycodestyle] Make E731 fix unsafe instead of display-only for class assignments 
  * [pyflakes] Add secondary annotation showing previous definition (F811) 
 * Documentation
  * Fix description of global config file discovery strategy 
  * Update outdated links to https://typing.python.org/en/latest/source/stubs.html 
  * [flake8-annotations] Remove unused import in example (ANN401)

OBS-URL: https://build.opensuse.org/request/show/1300962
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=82
2025-08-25 18:36:09 +00:00
0f540c8d39 - update to 0.12.10
* Preview features
  * [flake8-simplify] Implement fix for maxsplit without separator (SIM905) 
  * [flake8-use-pathlib] Add fixes for PTH102 and PTH103 
 * Bug fixes
  * [isort] Handle multiple continuation lines after module docstring (I002) 
  * [pyupgrade] Avoid reporting __future__ features as unnecessary when they are used (UP010) 
  * [pyupgrade] Handle nested Optionals (UP045) 
 * Rule changes
  * [pycodestyle] Make E731 fix unsafe instead of display-only for class assignments 
  * [pyflakes] Add secondary annotation showing previous definition (F811) 
 * Documentation
  * Fix description of global config file discovery strategy 
  * Update outdated links to https://typing.python.org/en/latest/source/stubs.html 
  * [flake8-annotations] Remove unused import in example (ANN401)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=175
2025-08-22 11:11:20 +00:00
40aca1f0d8 Accepting request 1299828 from devel:languages:python
- update to 0.12.9:
  * \[`airflow`\] Add check for
    `airflow.secrets.cache.SecretCache` (`AIR301`)
  * \[`ruff`\] Offer a safe fix for multi-digit zeros (`RUF064`)
  * \[`flake8-blind-except`\] Fix `BLE001` false-positive on
    `raise ... from None`
  * \[`flake8-comprehensions`\] Fix false positive for `C420`
    with attribute, subscript, or slice assignment targets
  * \[`flake8-simplify`\] Fix handling of U+001C..U+001F
    whitespace (`SIM905`)
  * \[`pylint`\] Use lowercase hex characters to match the
    formatter (`PLE2513`)

  * [flake8-use-pathlib] Expand PTH201 to check all PurePath subclasses
  * [flake8-blind-except] Change BLE001 to correctly parse exception tuples
  * [flake8-errmsg] Exclude typing.cast from EM101
  * [flake8-simplify] Fix raw string handling in SIM905 for embedded quotes
  * [flake8-import-conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001
  * [isort] Fix syntax error after docstring ending with backslash (I002)
  * [pylint] Mark PLC0207 fixes as unsafe when *args unpacking is present
  * [pyupgrade] Prevent infinite loop with I002 (UP010, UP035)
  * [ruff] Parenthesize generator expressions in f-strings (RUF010)
  * [eradicate] Don't flag pyrefly pragmas as unused code (ERA001)
  * Replace "associative" with "commutative" in docs for RUF036
  * Fix copy and line separator colors in dark mode
  * Fix link to typing documentation
  * Include column numbers in GitLab output format
  * Always expand tabs to four spaces in diagnostics
  * Update pre-commit's ruff id

OBS-URL: https://build.opensuse.org/request/show/1299828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=81
2025-08-18 14:07:32 +00:00
1375d56cbe - update to 0.12.9:
* \[`airflow`\] Add check for
    `airflow.secrets.cache.SecretCache` (`AIR301`)
  * \[`ruff`\] Offer a safe fix for multi-digit zeros (`RUF064`)
  * \[`flake8-blind-except`\] Fix `BLE001` false-positive on
    `raise ... from None`
  * \[`flake8-comprehensions`\] Fix false positive for `C420`
    with attribute, subscript, or slice assignment targets
  * \[`flake8-simplify`\] Fix handling of U+001C..U+001F
    whitespace (`SIM905`)
  * \[`pylint`\] Use lowercase hex characters to match the
    formatter (`PLE2513`)
  * [flake8-use-pathlib] Expand PTH201 to check all PurePath subclasses
 * Bug fixes
  * [flake8-blind-except] Change BLE001 to correctly parse exception tuples
  * [flake8-errmsg] Exclude typing.cast from EM101
  * [flake8-simplify] Fix raw string handling in SIM905 for embedded quotes
  * [flake8-import-conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001
  * [isort] Fix syntax error after docstring ending with backslash (I002)
  * [pylint] Mark PLC0207 fixes as unsafe when *args unpacking is present
  * [pyupgrade] Prevent infinite loop with I002 (UP010, UP035)
  * [ruff] Parenthesize generator expressions in f-strings (RUF010)
 * Rule changes
  * [eradicate] Don't flag pyrefly pragmas as unused code (ERA001)
 * Documentation
  * Replace "associative" with "commutative" in docs for RUF036
  * Fix copy and line separator colors in dark mode
  * Fix link to typing documentation
  * Include column numbers in GitLab output format
  * Always expand tabs to four spaces in diagnostics

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=173
2025-08-15 12:57:39 +00:00
4f795caf0d Accepting request 1298595 from devel:languages:python
- update to 0.12.8
 * Preview features
  * [flake8-use-pathlib] Expand PTH201 to check all PurePath subclasses 
 * Bug fixes
  * [flake8-blind-except] Change BLE001 to correctly parse exception tuples 
  * [flake8-errmsg] Exclude typing.cast from EM101 
  * [flake8-simplify] Fix raw string handling in SIM905 for embedded quotes 
  * [flake8-import-conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001 
  * [isort] Fix syntax error after docstring ending with backslash (I002) 
  * [pylint] Mark PLC0207 fixes as unsafe when *args unpacking is present 
  * [pyupgrade] Prevent infinite loop with I002 (UP010, UP035) 
  * [ruff] Parenthesize generator expressions in f-strings (RUF010) 
 * Rule changes
  * [eradicate] Don't flag pyrefly pragmas as unused code (ERA001) 
 * Documentation
  * Replace "associative" with "commutative" in docs for RUF036 
  * Fix copy and line separator colors in dark mode 
  * Fix link to typing documentation 
  * [refurb] Make more examples error out-of-the-box
 * Other changes
  * Include column numbers in GitLab output format 
  * Always expand tabs to four spaces in diagnostics 
  * Update pre-commit's ruff id

OBS-URL: https://build.opensuse.org/request/show/1298595
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=80
2025-08-09 17:59:15 +00:00
89b84e0753 - update to 0.12.8
* Preview features
  * [flake8-use-pathlib] Expand PTH201 to check all PurePath subclasses 
 * Bug fixes
  * [flake8-blind-except] Change BLE001 to correctly parse exception tuples 
  * [flake8-errmsg] Exclude typing.cast from EM101 
  * [flake8-simplify] Fix raw string handling in SIM905 for embedded quotes 
  * [flake8-import-conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001 
  * [isort] Fix syntax error after docstring ending with backslash (I002) 
  * [pylint] Mark PLC0207 fixes as unsafe when *args unpacking is present 
  * [pyupgrade] Prevent infinite loop with I002 (UP010, UP035) 
  * [ruff] Parenthesize generator expressions in f-strings (RUF010) 
 * Rule changes
  * [eradicate] Don't flag pyrefly pragmas as unused code (ERA001) 
 * Documentation
  * Replace "associative" with "commutative" in docs for RUF036 
  * Fix copy and line separator colors in dark mode 
  * Fix link to typing documentation 
  * [refurb] Make more examples error out-of-the-box
 * Other changes
  * Include column numbers in GitLab output format 
  * Always expand tabs to four spaces in diagnostics 
  * Update pre-commit's ruff id

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=171
2025-08-09 10:29:08 +00:00
9a752079c3 Accepting request 1296552 from devel:languages:python
- update to 0.12.7:
  * \[`flake8-commas`\] Add support for trailing comma checks in
    type parameter lists (`COM812`, `COM819`)
  * \[`pylint`\] Implement auto-fix for `missing-maxsplit-arg`
    (`PLC0207`)
  * \[`ruff`\] Offer fixes for `RUF039` in more cases
  * Support `.pyi` files in ruff analyze graph
  * \[`flake8-pyi`\] Preserve inline comment in ellipsis removal
    (`PYI013`)
  * \[`perflint`\] Ignore rule if target is `global` or
    `nonlocal` (`PERF401`)
  * \[`pyupgrade`\] Fix `UP030` to avoid modifying double curly
    braces in format strings
  * \[`refurb`\] Ignore decorated functions for `FURB118`
  * \[`refurb`\] Mark `int` and `bool` cases for
    `Decimal.from_float` as safe fixes (`FURB164`)
  * \[`ruff`\] Fix `RUF033` for named default expressions

OBS-URL: https://build.opensuse.org/request/show/1296552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=79
2025-07-31 15:45:01 +00:00
4fb19a8662 - update to 0.12.7:
* \[`flake8-commas`\] Add support for trailing comma checks in
    type parameter lists (`COM812`, `COM819`)
  * \[`pylint`\] Implement auto-fix for `missing-maxsplit-arg`
    (`PLC0207`)
  * \[`ruff`\] Offer fixes for `RUF039` in more cases
  * Support `.pyi` files in ruff analyze graph
  * \[`flake8-pyi`\] Preserve inline comment in ellipsis removal
    (`PYI013`)
  * \[`perflint`\] Ignore rule if target is `global` or
    `nonlocal` (`PERF401`)
  * \[`pyupgrade`\] Fix `UP030` to avoid modifying double curly
    braces in format strings
  * \[`refurb`\] Ignore decorated functions for `FURB118`
  * \[`refurb`\] Mark `int` and `bool` cases for
    `Decimal.from_float` as safe fixes (`FURB164`)
  * \[`ruff`\] Fix `RUF033` for named default expressions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=169
2025-07-30 11:51:57 +00:00
703bf4c0f8 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
2025-07-27 14:26:12 +00:00
9b3a588d67 - 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)
 * 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
 * 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+
 * Documentation
   * [flake8-type-checking] Make TC010 docs example more realistic
   * [flake8-bugbear] Support non-context-manager calls in B017

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=167
2025-07-25 15:53:18 +00:00
6f0be6d2bc Accepting request 1294441 from devel:languages:python
- 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) 
 * 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 
 * 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+ 
 * Documentation
   * [flake8-type-checking] Make TC010 docs example more realistic 
   * Make more documentation examples error out-of-the-box

OBS-URL: https://build.opensuse.org/request/show/1294441
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=77
2025-07-21 17:58:40 +00:00
4a81ecdb06 - 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) 
 * 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 
 * 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+ 
 * Documentation
   * [flake8-type-checking] Make TC010 docs example more realistic 
   * Make more documentation examples error out-of-the-box

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=165
2025-07-18 18:47:43 +00:00
62fb7bf8dd Accepting request 1292499 from devel:languages:python
- 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 
 * 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 
 * 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)

OBS-URL: https://build.opensuse.org/request/show/1292499
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=76
2025-07-15 14:43:00 +00:00
d370fa1ba3 - 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 
 * 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 
 * 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=163
2025-07-13 12:39:18 +00:00
4f8e38deb1 Accepting request 1290670 from devel:languages:python
- update to 0.12.2:
  * [`flake8-pyi`] Expand `Optional[A]` to `A | None`
    (`PYI016`)
  * [`pyupgrade`] Mark `UP008` fix safe if no comments are in
    range
  * [`flake8-comprehensions`] Fix `C420` to prepend whitespace
    when needed
  * [`perflint`] Fix `PERF403` panic on attribute or
    subscription loop variable
  * [`pydocstyle`] Fix `D413` infinite loop for parenthesized
    docstring
  * [`pylint`] Fix `PLW0108` autofix introducing a syntax error
    when the lambda's body contains an assignment expression
  * [`refurb`] Fix false positive on empty tuples (`FURB168`)
  * [`ruff`] Allow more `field` calls from `attrs` (`RUF009`)
  * [`ruff`] Fix syntax error introduced for an empty string
    followed by a u-prefixed string (`UP025`)

   * [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
   * 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

OBS-URL: https://build.opensuse.org/request/show/1290670
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=75
2025-07-06 15:03:57 +00:00
cff2b677ad - update to 0.12.2:
* [`flake8-pyi`] Expand `Optional[A]` to `A | None`
    (`PYI016`)
  * [`pyupgrade`] Mark `UP008` fix safe if no comments are in
    range
  * [`flake8-comprehensions`] Fix `C420` to prepend whitespace
    when needed
  * [`perflint`] Fix `PERF403` panic on attribute or
    subscription loop variable
  * [`pydocstyle`] Fix `D413` infinite loop for parenthesized
    docstring
  * [`pylint`] Fix `PLW0108` autofix introducing a syntax error
    when the lambda's body contains an assignment expression
  * [`refurb`] Fix false positive on empty tuples (`FURB168`)
  * [`ruff`] Allow more `field` calls from `attrs` (`RUF009`)
  * [`ruff`] Fix syntax error introduced for an empty string
    followed by a u-prefixed string (`UP025`)
   * [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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=161
2025-07-04 11:37:53 +00:00
79a2fd8f4a Accepting request 1288970 from devel:languages:python
- 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/request/show/1288970
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=74
2025-06-30 11:04:08 +00:00
c4da39d03e - 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
2025-06-28 16:33:02 +00:00
669d424f58 Accepting request 1286470 from devel:languages:python
- update to 0.12.0 
 * Breaking changes
   * Detection of more syntax errors
   * New default Python version handling for syntax errors
   * Updated f-string formatting
   * rust-toolchain.toml is no longer included in source distributions
 * Removed Rules
   * suspicious-xmle-tree-usage (S320)
 * Deprecated Rules
   * pandas-df-variable-name
 * Stabilization
   * for-loop-writes (FURB122)
   * check-and-remove-from-set (FURB132)
   * verbose-decimal-constructor (FURB157)
   * fromisoformat-replace-z (FURB162)
   * int-on-sliced-str (FURB166)
   * exc-info-outside-except-handler (LOG014)
   * import-outside-top-level (PLC0415)
   * unnecessary-dict-index-lookup (PLR1733)
   * nan-comparison (PLW0177)
   * eq-without-hash (PLW1641)
   * pytest-parameter-with-default-argument (PT028)
   * pytest-warns-too-broad (PT030)
   * pytest-warns-with-multiple-statements (PT031)
   * invalid-formatter-suppression-comment (RUF028)
   * dataclass-enum (RUF049)
   * class-with-mixed-type-vars (RUF053)
   * unnecessary-round (RUF057)
   * starmap-zip (RUF058)
   * non-pep604-annotation-optional (UP045)

OBS-URL: https://build.opensuse.org/request/show/1286470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruff?expand=0&rev=73
2025-06-18 20:28:35 +00:00
335e927b70 - update to 0.12.0
* Breaking changes
   * Detection of more syntax errors
   * New default Python version handling for syntax errors
   * Updated f-string formatting
   * rust-toolchain.toml is no longer included in source distributions
 * Removed Rules
   * suspicious-xmle-tree-usage (S320)
 * Deprecated Rules
   * pandas-df-variable-name
 * Stabilization
   * for-loop-writes (FURB122)
   * check-and-remove-from-set (FURB132)
   * verbose-decimal-constructor (FURB157)
   * fromisoformat-replace-z (FURB162)
   * int-on-sliced-str (FURB166)
   * exc-info-outside-except-handler (LOG014)
   * import-outside-top-level (PLC0415)
   * unnecessary-dict-index-lookup (PLR1733)
   * nan-comparison (PLW0177)
   * eq-without-hash (PLW1641)
   * pytest-parameter-with-default-argument (PT028)
   * pytest-warns-too-broad (PT030)
   * pytest-warns-with-multiple-statements (PT031)
   * invalid-formatter-suppression-comment (RUF028)
   * dataclass-enum (RUF049)
   * class-with-mixed-type-vars (RUF053)
   * unnecessary-round (RUF057)
   * starmap-zip (RUF058)
   * non-pep604-annotation-optional (UP045)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=157
2025-06-17 22:42:56 +00:00
5 changed files with 375 additions and 7 deletions

View File

@@ -1,3 +1,371 @@
-------------------------------------------------------------------
Fri Sep 5 09:19:10 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.12.12:
* Show fixes by default
* [`airflow`] Convert `DatasetOrTimeSchedule(datasets=...)`
to `AssetOrTimeSchedule(assets=...)` (`AIR311`)
* [`airflow`] Improve the `AIR002` error message
* [`airflow`] Move
`airflow.operators.postgres_operator.Mapping` from `AIR302`
to `AIR301`
* [`flake8-async`] Implement `blocking-input` rule
(`ASYNC250`)
* [`flake8-use-pathlib`] Make `PTH119` and `PTH120` fixes
unsafe because they can change behavior
* [`pylint`] Add U+061C to `PLE2502`
* [`ruff`] Fix false negative for empty f-strings in `deque`
calls (`RUF037`)
* Less confidently mark f-strings as empty when inferring
truthiness
* [`fastapi`] Fix false positive for paths with spaces around
parameters (`FAST003`)
* [`flake8-comprehensions`] Skip `C417` when lambda contains
`yield`/`yield from`
* [`perflint`] Handle tuples in dictionary comprehensions
(`PERF403`)
-------------------------------------------------------------------
Tue Sep 2 14:04:47 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update vendor tarball to fix CVE-2025-58160 (bsc#1249011)
-------------------------------------------------------------------
Thu Aug 28 21:53:00 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.11
* Preview features
* [airflow] Extend AIR311 and AIR312 rules
* [airflow] Replace wrong path airflow.io.storage with airflow.io.store (AIR311)
* [flake8-async] Implement blocking-http-call-httpx-in-async-function (ASYNC212)
* [flake8-logging-format] Add auto-fix for f-string logging calls (G004)
* [flake8-use-pathlib] Add autofix for PTH211
* [flake8-use-pathlib] Make PTH100 fix unsafe because it can change behavior
* Bug fixes
* [pyflakes, pylint] Fix false positives caused by __class__ cell handling (F841, PLE0117)
* [pyflakes] Fix allowed-unused-imports matching for top-level modules (F401)
* [ruff] Fix false positive for t-strings in default-factory-kwarg (RUF026)
* [ruff] Preserve relative whitespace in multi-line expressions (RUF033)
* Rule changes
* [ruff] Handle empty t-strings in unnecessary-empty-iterable-within-deque-call (RUF037)
* Documentation
* Fix incorrect D413 links in docstrings convention FAQ
* [flake8-use-pathlib] Update links to the table showing the correspondence between os and pathlib
-------------------------------------------------------------------
Fri Aug 22 11:09:22 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.10
* Preview features
* [flake8-simplify] Implement fix for maxsplit without separator (SIM905)
* [flake8-use-pathlib] Add fixes for PTH102 and PTH103
* Bug fixes
* [isort] Handle multiple continuation lines after module docstring (I002)
* [pyupgrade] Avoid reporting __future__ features as unnecessary when they are used (UP010)
* [pyupgrade] Handle nested Optionals (UP045)
* Rule changes
* [pycodestyle] Make E731 fix unsafe instead of display-only for class assignments
* [pyflakes] Add secondary annotation showing previous definition (F811)
* Documentation
* Fix description of global config file discovery strategy
* Update outdated links to https://typing.python.org/en/latest/source/stubs.html
* [flake8-annotations] Remove unused import in example (ANN401)
-------------------------------------------------------------------
Fri Aug 15 12:56:45 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.12.9:
* \[`airflow`\] Add check for
`airflow.secrets.cache.SecretCache` (`AIR301`)
* \[`ruff`\] Offer a safe fix for multi-digit zeros (`RUF064`)
* \[`flake8-blind-except`\] Fix `BLE001` false-positive on
`raise ... from None`
* \[`flake8-comprehensions`\] Fix false positive for `C420`
with attribute, subscript, or slice assignment targets
* \[`flake8-simplify`\] Fix handling of U+001C..U+001F
whitespace (`SIM905`)
* \[`pylint`\] Use lowercase hex characters to match the
formatter (`PLE2513`)
-------------------------------------------------------------------
Sat Aug 9 10:13:13 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.8
* Preview features
* [flake8-use-pathlib] Expand PTH201 to check all PurePath subclasses
* Bug fixes
* [flake8-blind-except] Change BLE001 to correctly parse exception tuples
* [flake8-errmsg] Exclude typing.cast from EM101
* [flake8-simplify] Fix raw string handling in SIM905 for embedded quotes
* [flake8-import-conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001
* [isort] Fix syntax error after docstring ending with backslash (I002)
* [pylint] Mark PLC0207 fixes as unsafe when *args unpacking is present
* [pyupgrade] Prevent infinite loop with I002 (UP010, UP035)
* [ruff] Parenthesize generator expressions in f-strings (RUF010)
* Rule changes
* [eradicate] Don't flag pyrefly pragmas as unused code (ERA001)
* Documentation
* Replace "associative" with "commutative" in docs for RUF036
* Fix copy and line separator colors in dark mode
* Fix link to typing documentation
* [refurb] Make more examples error out-of-the-box
* Other changes
* Include column numbers in GitLab output format
* Always expand tabs to four spaces in diagnostics
* Update pre-commit's ruff id
-------------------------------------------------------------------
Wed Jul 30 09:48:46 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.12.7:
* \[`flake8-commas`\] Add support for trailing comma checks in
type parameter lists (`COM812`, `COM819`)
* \[`pylint`\] Implement auto-fix for `missing-maxsplit-arg`
(`PLC0207`)
* \[`ruff`\] Offer fixes for `RUF039` in more cases
* Support `.pyi` files in ruff analyze graph
* \[`flake8-pyi`\] Preserve inline comment in ellipsis removal
(`PYI013`)
* \[`perflint`\] Ignore rule if target is `global` or
`nonlocal` (`PERF401`)
* \[`pyupgrade`\] Fix `UP030` to avoid modifying double curly
braces in format strings
* \[`refurb`\] Ignore decorated functions for `FURB118`
* \[`refurb`\] Mark `int` and `bool` cases for
`Decimal.from_float` as safe fixes (`FURB164`)
* \[`ruff`\] Fix `RUF033` for named default expressions
-------------------------------------------------------------------
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)
* 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
* 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+
* Documentation
* [flake8-type-checking] Make TC010 docs example more realistic
* Make more documentation examples error out-of-the-box
-------------------------------------------------------------------
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
* 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
* 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)
-------------------------------------------------------------------
Fri Jul 4 11:36:37 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.12.2:
* [`flake8-pyi`] Expand `Optional[A]` to `A | None`
(`PYI016`)
* [`pyupgrade`] Mark `UP008` fix safe if no comments are in
range
* [`flake8-comprehensions`] Fix `C420` to prepend whitespace
when needed
* [`perflint`] Fix `PERF403` panic on attribute or
subscription loop variable
* [`pydocstyle`] Fix `D413` infinite loop for parenthesized
docstring
* [`pylint`] Fix `PLW0108` autofix introducing a syntax error
when the lambda's body contains an assignment expression
* [`refurb`] Fix false positive on empty tuples (`FURB168`)
* [`ruff`] Allow more `field` calls from `attrs` (`RUF009`)
* [`ruff`] Fix syntax error introduced for an empty string
followed by a u-prefixed string (`UP025`)
-------------------------------------------------------------------
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>
- update to 0.12.0
* Breaking changes
* Detection of more syntax errors
* New default Python version handling for syntax errors
* Updated f-string formatting
* rust-toolchain.toml is no longer included in source distributions
* Removed Rules
* suspicious-xmle-tree-usage (S320)
* Deprecated Rules
* pandas-df-variable-name
* Stabilization
* for-loop-writes (FURB122)
* check-and-remove-from-set (FURB132)
* verbose-decimal-constructor (FURB157)
* fromisoformat-replace-z (FURB162)
* int-on-sliced-str (FURB166)
* exc-info-outside-except-handler (LOG014)
* import-outside-top-level (PLC0415)
* unnecessary-dict-index-lookup (PLR1733)
* nan-comparison (PLW0177)
* eq-without-hash (PLW1641)
* pytest-parameter-with-default-argument (PT028)
* pytest-warns-too-broad (PT030)
* pytest-warns-with-multiple-statements (PT031)
* invalid-formatter-suppression-comment (RUF028)
* dataclass-enum (RUF049)
* class-with-mixed-type-vars (RUF053)
* unnecessary-round (RUF057)
* starmap-zip (RUF058)
* non-pep604-annotation-optional (UP045)
* non-pep695-generic-class (UP046)
* non-pep695-generic-function (UP047)
* private-type-parameter (UP049)
* collection-literal-concatenation (RUF005) now recognizes slices, in addition to list literals and variables.
* The fix for readlines-in-for (FURB129) is now marked as always safe.
* if-else-block-instead-of-if-exp (SIM108) will now further simplify expressions to use or instead of an if expression, where possible.
* unused-noqa (RUF100) now checks for file-level noqa comments as well as inline comments.
* subprocess-without-shell-equals-true (S603) now accepts literal strings, as well as lists and tuples of literal strings, as trusted input.
* boolean-type-hint-positional-argument (FBT001) now applies to types that include bool, like bool | int or typing.Optional[bool], in addition to plain bool annotations.
* non-pep604-annotation-union (UP007) has now been split into two rules. UP007 now applies only to typing.Union, while non-pep604-annotation-optional (UP045) checks for use of typing.Optional. UP045 has also been stabilized in this release, but you may need to update existing include, ignore, or noqa settings to accommodate this change.
* Preview features
* [ruff] Check for non-context-manager use of pytest.raises, pytest.warns, and pytest.deprecated_call (RUF061)
* [syntax-errors] Raise unsupported syntax error for template strings prior to Python 3.14
* Bug fixes
* Add syntax error when conversion flag does not immediately follow exclamation mark
* Add trailing space around readlines
* Fix \r and \r\n handling in t- and f-string debug texts
* Hug closing } when f-string expression has a format specifier
* [flake8-pyi] Avoid syntax error in the case of starred and keyword arguments (PYI059)
* [flake8-return] Fix RET504 autofix generating a syntax error
* [pep8-naming] Suppress fix for N804 and N805 if the recommended name is already used
* [pycodestyle] Avoid causing a syntax error in expressions spanning multiple lines (E731)
* [pyupgrade] Suppress UP008 if super is shadowed
* [refurb] Parenthesize lambda and ternary expressions (FURB122, FURB142)
* [ruff] Handle extra arguments to deque (RUF037)
* [ruff] Preserve parentheses around deque in fix for unnecessary-empty-iterable-within-deque-call (RUF037)
* [ruff] Validate arguments before offering a fix (RUF056)
* [ruff] Skip fix for RUF059 if dummy name is already bound
* [pylint] Fix PLW0128 to check assignment targets in square brackets and after asterisks
* Rule changes
* Fix false positive on mutations in return statements (B909)
* Treat ty: comments as pragma comments
* [flake8-pyi] Apply custom-typevar-for-self to string annotations (PYI019)
* [pyupgrade] Don't offer a fix for Optional[None] (UP007, UP045)
* [pyupgrade] Fix super(__class__, self) detection (UP008)
* [refurb] Make the fix for FURB163 unsafe for log2, log10, *args, and deleted comments
* Server
* Support cancellation requests
* Documentation
* Drop confusing second * from glob pattern example for per-file-target-version
* Update Neovim configuration examples
* [pylint] De-emphasize __hash__ = Parent.__hash__ (PLW1641)
* [refurb] Add a note about float literal handling (FURB157)
-------------------------------------------------------------------
Tue Jun 10 11:18:15 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ruff
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-ruff
Version: 0.11.13
Version: 0.12.12
Release: 0
Summary: An extremely fast Python linter, written in Rust
License: MIT

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

Binary file not shown.

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

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

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

Binary file not shown.