forked from pool/python-ruff
- switch to libalternatives
- drop cargo_config - update _service for new cargo-vendor service - update to 0.1.6 * Preview features * [flake8-boolean-trap] Extend boolean-type-hint-positional-argument (FBT001) to include booleans in unions * [flake8-pie] Extend reimplemented-list-builtin (PIE807) to dict reimplementations * [flake8-pie] Extend unnecessary-pass (PIE790) to include ellipses (...) * [flake8-pie] Implement fix for unnecessary-spread (PIE800) * [flake8-quotes] Implement unnecessary-escaped-quote (Q004) * [pycodestyle] Implement fix for multiple-spaces-after-keyword (E271) and multiple-spaces-before-keyword (E272) * [pycodestyle] Implement fix for multiple-spaces-after-operator (E222) and multiple-spaces-before-operator (E221) * [pyflakes] Extend is-literal (F632) to include comparisons against mutable initializers * [pylint] Implement redefined-argument-from-local (PLR1704) * [pylint] Implement fix for unnecessary-lambda (PLW0108) * [refurb] Implement if-expr-min-max (FURB136) * [refurb] Implement math-constant (FURB152) * Rule changes * [flake8-annotations] Add autotyping-like return type inference for annotation rules * [flake8-future-annotations] Implement fix for future-required-type-annotation (FA102) * [flake8-implicit-namespace-package] Avoid missing namespace violations in scripts with shebangs * [pydocstyle] Update over-indentation (D208) to preserve indentation offsets when fixing overindented lines * [pyupgrade] Refine timeout-error-alias (UP041) to remove false positives * Formatter * Fix instability in await formatting with fluent style * Compare formatted and unformatted ASTs during formatter tests * Preserve trailing semicolon for Notebooks * CLI * Improve debug printing for resolving origin of config settings * Write unchanged, excluded files to stdout when read via stdin OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=18
This commit is contained in:
parent
8e90d07827
commit
5edabb2571
3
_service
3
_service
@ -1,9 +1,8 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="download_files" mode="manual" />
|
<service name="download_files" mode="manual" />
|
||||||
<service name="cargo_vendor" mode="manual">
|
<service name="cargo_vendor" mode="manual">
|
||||||
<param name="srctar">ruff-0.1.5.tar.gz</param>
|
<param name="srctar">ruff-0.1.6.tar.gz</param>
|
||||||
<param name="compression">zst</param>
|
<param name="compression">zst</param>
|
||||||
<param name="update">true</param>
|
<param name="update">true</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="cargo_audit" mode="manual" />
|
|
||||||
</services>
|
</services>
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
[source.crates-io]
|
|
||||||
replace-with = "vendored-sources"
|
|
||||||
|
|
||||||
[source.vendored-sources]
|
|
||||||
directory = "vendor"
|
|
@ -1,3 +1,68 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 19 03:53:46 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- switch to libalternatives
|
||||||
|
- drop cargo_config
|
||||||
|
- update _service for new cargo-vendor service
|
||||||
|
- update to 0.1.6
|
||||||
|
* Preview features
|
||||||
|
* [flake8-boolean-trap] Extend boolean-type-hint-positional-argument (FBT001) to include booleans in unions
|
||||||
|
* [flake8-pie] Extend reimplemented-list-builtin (PIE807) to dict reimplementations
|
||||||
|
* [flake8-pie] Extend unnecessary-pass (PIE790) to include ellipses (...)
|
||||||
|
* [flake8-pie] Implement fix for unnecessary-spread (PIE800)
|
||||||
|
* [flake8-quotes] Implement unnecessary-escaped-quote (Q004)
|
||||||
|
* [pycodestyle] Implement fix for multiple-spaces-after-keyword (E271) and multiple-spaces-before-keyword (E272)
|
||||||
|
* [pycodestyle] Implement fix for multiple-spaces-after-operator (E222) and multiple-spaces-before-operator (E221)
|
||||||
|
* [pyflakes] Extend is-literal (F632) to include comparisons against mutable initializers
|
||||||
|
* [pylint] Implement redefined-argument-from-local (PLR1704)
|
||||||
|
* [pylint] Implement fix for unnecessary-lambda (PLW0108)
|
||||||
|
* [refurb] Implement if-expr-min-max (FURB136)
|
||||||
|
* [refurb] Implement math-constant (FURB152)
|
||||||
|
* Rule changes
|
||||||
|
* [flake8-annotations] Add autotyping-like return type inference for annotation rules
|
||||||
|
* [flake8-future-annotations] Implement fix for future-required-type-annotation (FA102)
|
||||||
|
* [flake8-implicit-namespace-package] Avoid missing namespace violations in scripts with shebangs
|
||||||
|
* [pydocstyle] Update over-indentation (D208) to preserve indentation offsets when fixing overindented lines
|
||||||
|
* [pyupgrade] Refine timeout-error-alias (UP041) to remove false positives
|
||||||
|
* Formatter
|
||||||
|
* Fix instability in await formatting with fluent style
|
||||||
|
* Compare formatted and unformatted ASTs during formatter tests
|
||||||
|
* Preserve trailing semicolon for Notebooks
|
||||||
|
* CLI
|
||||||
|
* Improve debug printing for resolving origin of config settings
|
||||||
|
* Write unchanged, excluded files to stdout when read via stdin
|
||||||
|
* Configuration
|
||||||
|
* [isort] Support disabling sections with no-sections = true
|
||||||
|
* [pep8-naming] Support local and dynamic class- and static-method decorators
|
||||||
|
* [pydocstyle] Allow overriding pydocstyle convention rules
|
||||||
|
* Bug fixes
|
||||||
|
* Avoid syntax error via importing trio.lowlevel
|
||||||
|
* Omit unrolled augmented assignments in PIE794
|
||||||
|
* Slice source code instead of generating it for EM fixes
|
||||||
|
* Allow whitespace around colon in slices for whitespace-before-punctuation (E203)
|
||||||
|
* Use function range for no-self-use
|
||||||
|
* F-strings doesn't contain bytes literal for PLW0129
|
||||||
|
* Improve detection of TYPE_CHECKING blocks imported from typing_extensions or _typeshed
|
||||||
|
* Treat display as a builtin in IPython
|
||||||
|
* Avoid FURB113 autofix if comments are present
|
||||||
|
* Consider the new f-string tokens for flake8-commas
|
||||||
|
* Remove erroneous bad-dunder-name reference
|
||||||
|
* Avoid recommending Self usages in metaclasses
|
||||||
|
* Detect runtime-evaluated base classes defined in the current file
|
||||||
|
* Avoid inserting trailing commas within f-strings
|
||||||
|
* Remove incorrect deprecation label for stdout and stderr
|
||||||
|
* Fix unnecessary parentheses in UP007 fix
|
||||||
|
* Remove repeated and erroneous scoped settings headers in docs
|
||||||
|
* Trim trailing empty strings when converting to f-strings
|
||||||
|
* Fix ordering for force-sort-within-sections
|
||||||
|
* Run unicode prefix rule over tokens
|
||||||
|
* Update UP032 to unescape curly braces in literal parts of converted strings
|
||||||
|
* List all ipython builtins
|
||||||
|
* Documentation
|
||||||
|
* Document conventions in the FAQ
|
||||||
|
* Redirect from rule codes to rule pages in docs
|
||||||
|
* Fix permalink to convention setting
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 13 14:21:57 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
Mon Nov 13 14:21:57 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@ -16,23 +16,23 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-ruff
|
Name: python-ruff
|
||||||
Version: 0.1.5
|
Version: 0.1.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An extremely fast Python linter, written in Rust
|
Summary: An extremely fast Python linter, written in Rust
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://docs.astral.sh/ruff
|
URL: https://docs.astral.sh/ruff
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/ruff/ruff-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/ruff/ruff-%{version}.tar.gz
|
||||||
Source1: vendor.tar.zst
|
Source1: vendor.tar.zst
|
||||||
Source2: cargo_config
|
|
||||||
BuildRequires: %{python_module maturin}
|
BuildRequires: %{python_module maturin}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: cargo-packaging
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun):update-alternatives
|
BuildRequires: alts
|
||||||
ExclusiveArch: %{rust_tier1_arches}
|
ExclusiveArch: %{rust_tier1_arches}
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -41,8 +41,6 @@ Ruff extremely fast Python linter written in rust supperseding many other lintin
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -a1 -p1 -n ruff-%{version}
|
%autosetup -a1 -p1 -n ruff-%{version}
|
||||||
mkdir .cargo
|
|
||||||
cp %{SOURCE2} .cargo/config
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@ -51,12 +49,10 @@ cp %{SOURCE2} .cargo/config
|
|||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/ruff
|
%python_clone -a %{buildroot}%{_bindir}/ruff
|
||||||
|
%python_group_libalternatives ruff
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative ruff
|
%python_libalternatives_reset_alternative ruff
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative ruff
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%python_alternative %{_bindir}/ruff
|
%python_alternative %{_bindir}/ruff
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5cbec0ef2ae1748fb194f420fb03fb2c25c3258c86129af7172ff8f198f125ab
|
|
||||||
size 1700097
|
|
3
ruff-0.1.6.tar.gz
Normal file
3
ruff-0.1.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1b09f29b16c6ead5ea6b097ef2764b42372aebe363722f1605ecbcd2b9207184
|
||||||
|
size 1719627
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:1eddf78dcd3c21e6f13cf061b2876c6d97286a1a33ec76eaa57c099f9a6c1245
|
oid sha256:329333da709d2e98d09ecad785995966e868d6b499bf4f47a3152e51054694b9
|
||||||
size 29061118
|
size 29044550
|
||||||
|
Loading…
Reference in New Issue
Block a user