14
0
forked from pool/python-ruff
Files
python-ruff/python-ruff.spec

63 lines
1.8 KiB
RPMSpec
Raw Normal View History

- update to 0.11.4 * Preview features * [ruff] Implement invalid-rule-code as RUF102 * [syntax-errors] Detect duplicate keys in match mapping patterns * [syntax-errors] Detect duplicate attributes in match class patterns * [syntax-errors] Detect invalid syntax in annotations * [airflow] Add more autofixes for AIR302 * [airflow] Move AIR301 to AIR002 * [airflow] Move AIR302 to AIR301 and AIR303 to AIR302 * [flake8-bandit] Mark str and list[str] literals as trusted input (S603) * [ruff] Support slices in RUF005 * [syntax-errors] Start detecting compile-time syntax errors * [syntax-errors] Duplicate type parameter names * [syntax-errors] Irrefutable case pattern before final case * [syntax-errors] Multiple assignments in case pattern * [syntax-errors] Single starred assignment target * [syntax-errors] Starred expressions in return, yield, and for * [syntax-errors] Store to or delete __debug__ * Bug fixes * [syntax-errors] Fix multiple assignment error for class fields in match patterns * Don't skip visiting non-tuple slice in typing.Annotated subscripts * Error instead of panic! when running Ruff from a deleted directory * [syntax-errors] Fix false positive for parenthesized tuple index * CLI * Check pyproject.toml correctly when it is passed via stdin * Configuration * [flake8-import-conventions] Add import numpy.typing as npt to default flake8-import-conventions.aliases * Documentation * [refurb] Document why UserDict, UserList, and UserString are preferred over dict, list, and str (FURB189) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=138
2025-04-06 19:01:15 +00:00
#
# spec file for package python-ruff
#
# 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
# 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.11.5
- update to 0.11.4 * Preview features * [ruff] Implement invalid-rule-code as RUF102 * [syntax-errors] Detect duplicate keys in match mapping patterns * [syntax-errors] Detect duplicate attributes in match class patterns * [syntax-errors] Detect invalid syntax in annotations * [airflow] Add more autofixes for AIR302 * [airflow] Move AIR301 to AIR002 * [airflow] Move AIR302 to AIR301 and AIR303 to AIR302 * [flake8-bandit] Mark str and list[str] literals as trusted input (S603) * [ruff] Support slices in RUF005 * [syntax-errors] Start detecting compile-time syntax errors * [syntax-errors] Duplicate type parameter names * [syntax-errors] Irrefutable case pattern before final case * [syntax-errors] Multiple assignments in case pattern * [syntax-errors] Single starred assignment target * [syntax-errors] Starred expressions in return, yield, and for * [syntax-errors] Store to or delete __debug__ * Bug fixes * [syntax-errors] Fix multiple assignment error for class fields in match patterns * Don't skip visiting non-tuple slice in typing.Annotated subscripts * Error instead of panic! when running Ruff from a deleted directory * [syntax-errors] Fix false positive for parenthesized tuple index * CLI * Check pyproject.toml correctly when it is passed via stdin * Configuration * [flake8-import-conventions] Add import numpy.typing as npt to default flake8-import-conventions.aliases * Documentation * [refurb] Document why UserDict, UserList, and UserString are preferred over dict, list, and str (FURB189) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=138
2025-04-06 19:01:15 +00:00
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