2023-10-13 16:29:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-ruff
|
|
|
|
#
|
2025-01-06 10:04:56 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2023-10-13 16:29:43 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-11-19 03:57:56 +00:00
|
|
|
%bcond_without libalternatives
|
2023-10-25 13:22:50 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2023-10-13 16:29:43 +00:00
|
|
|
Name: python-ruff
|
- update to 0.12.3:
* Preview features
* [flake8-bugbear] Support non-context-manager calls in B017
* [flake8-use-pathlib] Add autofixes for PTH100, PTH106, PTH107, PTH108, PTH110, PTH111, PTH112, PTH113, PTH114, PTH115, PTH117, PTH119, PTH120
* [flake8-use-pathlib] Add autofixes for PTH203, PTH204, PTH205
* Bug fixes
* [flake8-return] Fix false-positive for variables used inside nested functions in RET504
* Treat form feed as valid whitespace before a line continuation
* [flake8-type-checking] Fix syntax error introduced by fix (TC008)
* [pyupgrade] Keyword arguments in super should suppress the UP008 fix
* Documentation
* [flake8-pyi] Make example error out-of-the-box (PYI007, PYI008)
* [flake8-simplify] Make example error out-of-the-box (SIM116)
* [flake8-type-checking] Make example error out-of-the-box (TC001)
* [flake8-use-pathlib] Make example error out-of-the-box (PTH210)
* [pycodestyle] Make example error out-of-the-box (E272)
* [pycodestyle] Make example not raise unnecessary SyntaxError (E114)
* [pydoclint] Make example error out-of-the-box (DOC501)
* [pylint, pyupgrade] Fix syntax errors in examples (PLW1501, UP028)
* [pylint] Update missing-maxsplit-arg docs and error to suggest proper usage (PLC0207)
* [flake8-bandit] Make example error out-of-the-box (S412)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=163
2025-07-13 12:39:18 +00:00
|
|
|
Version: 0.12.3
|
2023-10-13 16:29:43 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: An extremely fast Python linter, written in Rust
|
|
|
|
License: MIT
|
2024-07-08 09:49:30 +00:00
|
|
|
URL: https://github.com/astral-sh/ruff
|
2023-10-13 16:29:43 +00:00
|
|
|
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
|
2024-10-25 20:11:27 +00:00
|
|
|
Provides: ruff = %{version}-%{release}
|
2023-11-19 03:57:56 +00:00
|
|
|
Requires: alts
|
|
|
|
BuildRequires: alts
|
2023-10-13 16:29:43 +00:00
|
|
|
%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
|
2023-11-19 03:57:56 +00:00
|
|
|
%python_group_libalternatives ruff
|
2023-10-13 16:29:43 +00:00
|
|
|
|
2023-11-19 03:57:56 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative ruff
|
2023-10-13 16:29:43 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%python_alternative %{_bindir}/ruff
|
|
|
|
%{python_sitearch}/ruff
|
|
|
|
%{python_sitearch}/ruff-%{version}.dist-info
|
|
|
|
|
|
|
|
%changelog
|