- update to 0.8.6

* Preview features
   * [format]: Preserve multiline implicit concatenated strings in docstring positions 
   * [ruff] Add rule to detect empty literal in deque call (RUF025) 
   * [ruff] Avoid reporting when ndigits is possibly negative (RUF057) 
 * Rule changes
   * [flake8-todos] remove issue code length restriction (TD003) 
   * [pyflakes] Ignore errors in @no_type_check string annotations (F722, F821) 
 * CLI
   * Show errors for attempted fixes only when passed --verbose 
 * Bug fixes
   * [ruff] Avoid syntax error when removing int over multiple lines (RUF046) 
   * [pyupgrade] Revert "Add all PEP-585 names to UP006 rule" 
 0.8.5
 * Preview features
   * [airflow] Extend names moved from core to provider (AIR303)
   * [airflow] Extend rule to check class attributes, methods, arguments (AIR302)
   * [fastapi] Update FAST002 to check keyword-only arguments 
   * [flake8-type-checking] Disable TC006 and TC007 in stub files 
   * [pylint] Detect nested methods correctly (PLW1641) 
   * [ruff] Detect more strict-integer expressions (RUF046) 
   * [ruff] Implement falsy-dict-get-fallback (RUF056) 
   * [ruff] Implement unnecessary-round (RUF057) 
 * Rule changes
   * Visit PEP 764 inline TypedDict keys as non-type-expressions 
   * [flake8-comprehensions] Skip C416 if comprehension contains unpacking 
   * [flake8-pie] Allow cast(SomeType, ...) (PIE796) 
   * [flake8-simplify] More precise inference for dictionaries (SIM300) 
   * [flake8-use-pathlib] Catch redundant joins in PTH201 and avoid syntax errors 
   * [pycodestyle] Preserve original value format (E731)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=110
This commit is contained in:
Ondřej Súkup 2025-01-06 10:04:56 +00:00 committed by Git OBS Bridge
parent fd74ce92bb
commit 4ef6714a26
5 changed files with 75 additions and 8 deletions

View File

@ -1,7 +1,74 @@
-------------------------------------------------------------------
Mon Jan 6 09:54:30 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.8.6
* Preview features
* [format]: Preserve multiline implicit concatenated strings in docstring positions
* [ruff] Add rule to detect empty literal in deque call (RUF025)
* [ruff] Avoid reporting when ndigits is possibly negative (RUF057)
* Rule changes
* [flake8-todos] remove issue code length restriction (TD003)
* [pyflakes] Ignore errors in @no_type_check string annotations (F722, F821)
* CLI
* Show errors for attempted fixes only when passed --verbose
* Bug fixes
* [ruff] Avoid syntax error when removing int over multiple lines (RUF046)
* [pyupgrade] Revert "Add all PEP-585 names to UP006 rule"
0.8.5
* Preview features
* [airflow] Extend names moved from core to provider (AIR303)
* [airflow] Extend rule to check class attributes, methods, arguments (AIR302)
* [fastapi] Update FAST002 to check keyword-only arguments
* [flake8-type-checking] Disable TC006 and TC007 in stub files
* [pylint] Detect nested methods correctly (PLW1641)
* [ruff] Detect more strict-integer expressions (RUF046)
* [ruff] Implement falsy-dict-get-fallback (RUF056)
* [ruff] Implement unnecessary-round (RUF057)
* Rule changes
* Visit PEP 764 inline TypedDict keys as non-type-expressions
* [flake8-comprehensions] Skip C416 if comprehension contains unpacking
* [flake8-pie] Allow cast(SomeType, ...) (PIE796)
* [flake8-simplify] More precise inference for dictionaries (SIM300)
* [flake8-use-pathlib] Catch redundant joins in PTH201 and avoid syntax errors
* [pycodestyle] Preserve original value format (E731)
* [pydocstyle] Split on first whitespace character (D403)
* [pyupgrade] Add all PEP-585 names to UP006 rule
* Configuration
* [flake8-type-checking] Improve flexibility of runtime-evaluated-decorators
* [pydocstyle] Add setting to ignore missing documentation for *args and **kwargs parameters (D417)
* [ruff] Add an allowlist for unsafe-markup-use (RUF035)
* Bug fixes
* Fix type subscript on older python versions
* Use TypeChecker for detecting fastapi routes
* [pycodestyle] Avoid false positives and negatives related to type parameter default syntax (E225, E251)
* Documentation
* Fix incorrect doc in shebang-not-executable (EXE001) and add git+windows solution to executable bit
* Rename rules currently not conforming to naming convention
0.8.4
* Preview features
* [airflow] Extend AIR302 with additional functions and classes
* [airflow] Implement moved-to-provider-in-3 for modules that has been moved to Airflow providers (AIR303)
* [flake8-use-pathlib] Extend check for invalid path suffix to include the case "." (PTH210)
* [perflint] Fix panic in PERF401 when list variable is after the for loop
* [perflint] Simplify finding the loop target in PERF401
* [pylint] Preserve original value format (PLR6104)
* [ruff] Avoid false positives for RUF027 for typing context bindings
* [ruff] Check for ambiguous pattern passed to pytest.raises() (RUF043)
* Rule changes
* [flake8-bandit] Check S105 for annotated assignment
* [flake8-pyi] More autofixes for redundant-none-literal (PYI061)
* [pydocstyle] Skip leading whitespace for D403
* [ruff] Skip SQLModel base classes for mutable-class-default (RUF012)
* Bug
* [perflint] Parenthesize walrus expressions in autofix for manual-list-comprehension (PERF401)
* Server
* Check diagnostic refresh support from client capability which enables dynamic configuration for various editors
-------------------------------------------------------------------
Mon Dec 16 10:04:03 UTC 2024 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.8.3
- update to 0.8.3
* Preview features
* Fix fstring formatting removing overlong implicit concatenated string in expression part
* [airflow] Add fix to remove deprecated keyword arguments (AIR302)

View File

@ -1,7 +1,7 @@
#
# spec file for package python-ruff
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# 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.8.3
Version: 0.8.6
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:5e7558304353b84279042fc584a4f4cb8a07ae79b2bf3da1a7551d960b5626d3
size 3378522

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

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

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27257e3a418676708443cd4a1542d15de3fa9d168818fff4ed23738f74a71dbc
size 29756170
oid sha256:c38d991b76b57438a0cb6ff91ece09e2165b81c75400aba338d611ae571dd350
size 29793334