Files
python-ruff/python-ruff.spec
Ondřej Súkup ede765ac82 - update to 0.15.0
* BREAKING CHANGES:
  * Ruff now formats your code according to the 2026 style guide.
  * The linter now supports block suppression comments.
  * Ruff now resolves all extended configuration files before falling back on a default Python version.
 * Stabilization
  * The following rules have been stabilized and are no longer in preview:
    * blocking-http-call-httpx-in-async-function (ASYNC212)
    * blocking-path-method-in-async-function (ASYNC240)
    * blocking-input-in-async-function (ASYNC250)
    * map-without-explicit-strict (B912)
    * if-exp-instead-of-or-operator (FURB110)
    * single-item-membership-test (FURB171)
    * missing-maxsplit-arg (PLC0207)
    * unnecessary-lambda (PLW0108)
    * unnecessary-empty-iterable-within-deque-call (RUF037)
    * in-empty-collection (RUF060)
    * legacy-form-pytest-raises (RUF061)
    * non-octal-permissions (RUF064)
    * invalid-rule-code (RUF102)
    * invalid-suppression-comment (RUF103)
    * unmatched-suppression-comment (RUF104)
    * replace-str-enum (UP042)
  * The following behaviors have been stabilized:
    * The --output-format flag is now respected when running Ruff in --watch mode, and the full output format is now used by default, matching the regular CLI output.
    * builtin-attribute-shadowing (A003) now detects the use of shadowed built-in names in additional contexts like decorators, default arguments, and other attribute definitions.
    * duplicate-union-member (PYI016) now considers typing.Optional when searching for duplicate union members.
    * split-static-string (SIM905) now offers an autofix when the maxsplit argument is provided, even without a sep argument.
    * dict-get-with-none-default (SIM910) now applies to more types of key expressions.
    * super-call-with-parameters (UP008) now has a safe fix when it will not delete comments.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=217
2026-02-04 11:26:13 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package python-ruff
#
# Copyright (c) 2026 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
# 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.15.0
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