15
0
forked from pool/python-ruff
Files
python-ruff/python-ruff.spec
Dirk Mueller b88b159b74 - update to 0.13.2:
* [`flake8-async`] Implement `blocking-path-method`
  * [`flake8-bugbear`] Implement `map-without-explicit-strict`
  * [`flake8-bultins`] Detect class-scope builtin shadowing in
    decorators, default args, and attribute initializers (`A003`)
  * [`ruff`] Implement `logging-eager-conversion` (`RUF065`)
  * Include `.pyw` files by default when linting and formatting
  * [flake8-simplify] Detect unnecessary None default for additional key expression types (SIM910)
  * [flake8-use-pathlib] Add fix for PTH123
  * [flake8-use-pathlib] Fix PTH101, PTH104, PTH105, PTH121 fixes
  * [flake8-use-pathlib] Make PTH111 fix unsafe because it can change behavior
  * [pycodestyle] Fix E301 to only trigger for functions immediately within a class
  * [refurb] Mark single-item-membership-test fix as always unsafe (FURB171)
 * Bug fixes
  * Handle t-strings for token-based rules and suppression comments
  * [flake8-bandit] Fix truthiness: dict-only ** displays not truthy for shell (S602, S604, S609)
  * [flake8-simplify] Fix diagnostic to show correct method name for str.rsplit calls (SIM905)
  * [flynt] Use triple quotes for joined raw strings with newlines (FLY002)
  * [pyupgrade] Fix false positive when class name is shadowed by local variable (UP008)
  * [pyupgrade] Prevent infinite loop with I002 and UP026
  * [ruff] Recognize t-strings, generators, and lambdas in invalid-index-type (RUF016)
 * Rule changes
  * [RUF102] Respect rule redirects in invalid rule code detection
  * [flake8-bugbear] Mark the fix for unreliable-callable-check as always unsafe (B004)
  * [ruff] Allow dataclass attribute value instantiation from nested frozen dataclass (RUF009)
  * Add fixes to output-format=sarif
  * Treat panics as fatal diagnostics, sort panics last
 * Documentation
  * [ruff] Add analyze.string-imports-min-dots to settings
  * Update README.md with Albumentations new repository URL

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=187
2025-09-26 10:08:27 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-ruff
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-ruff
Version: 0.13.2
Release: 0
Summary: An extremely fast Python linter, written in Rust
License: MIT
URL: https://github.com/astral-sh/ruff
Source: https://files.pythonhosted.org/packages/source/r/ruff/ruff-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: %{python_module maturin}
BuildRequires: %{python_module pip}
BuildRequires: cargo-packaging
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: ruff = %{version}-%{release}
Requires: alts
BuildRequires: alts
%python_subpackages
%description
Ruff extremely fast Python linter written in rust supperseding many other linting tools
%prep
%autosetup -a1 -p1 -n ruff-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%python_clone -a %{buildroot}%{_bindir}/ruff
%python_group_libalternatives ruff
%pre
%python_libalternatives_reset_alternative ruff
%files %{python_files}
%python_alternative %{_bindir}/ruff
%{python_sitearch}/ruff
%{python_sitearch}/ruff-%{version}.dist-info
%changelog