forked from pool/python-ruff
* Preview features * [formatter] Remove parentheses around multiple exception types on Python 3.14+ * [flake8-bugbear] Omit annotation in preview fix for B006 * [flake8-logging-format] Avoid dropping implicitly concatenated pieces in the G004 fix * [pydoclint] Implement docstring-extraneous-parameter (DOC102) * [pyupgrade] Extend UP019 to detect typing_extensions.Text (UP019) * [pyupgrade] Fix false negative for TypeVar with default argument in non-pep695-generic-class (UP046) * Bug fixes * Fix false negatives in Truthiness::from_expr for lambdas, generators, and f-strings * Fix syntax error false positives for escapes and quotes in f-strings * Fix syntax error false positives on parenthesized context managers * [fastapi] Fix false positives for path parameters that FastAPI doesn't recognize (FAST003) * [flake8-pyi] Fix operator precedence by adding parentheses when needed (PYI061) * [ruff] Suppress diagnostic for f-string interpolations with debug text (RUF010) * Rule changes * [airflow] Add warning to airflow.datasets.DatasetEvent usage (AIR301) * [flake8-bugbear] Mark B905 and B912 fixes as unsafe * Use DiagnosticTag for more rules - changes display in editors * Documentation * Update Python compatibility from 3.13 to 3.14 in README.md * Update lint.flake8-type-checking.quoted-annotations docs * Update setup instructions for Zed 0.208.0+ * [flake8-datetimez] Clarify docs for several rules * Fix typo in RUF015 description * Other changes * Reduce binary size * Improved error recovery for unclosed strings (including f- and t-strings) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=193
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# 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
|
|
# 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.14.1
|
|
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
|