From 5bd5d7adb6dd7f559b1ea2fe74b103235407588fd00de2492a84b362063efece Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 8 Mar 2024 16:58:05 +0000 Subject: [PATCH 1/2] - Remove limitations on building (do not exclude any arch beforehand). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=45 --- _service | 1 + python-ruff.changes | 5 +++++ python-ruff.spec | 3 ++- vendor.tar.zst | 4 ++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/_service b/_service index 8332fa6..26a825d 100644 --- a/_service +++ b/_service @@ -5,4 +5,5 @@ zst true + diff --git a/python-ruff.changes b/python-ruff.changes index 21727f1..0f4523a 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 8 16:57:10 UTC 2024 - Matej Cepl + +- Remove limitations on building (do not exclude any arch beforehand). + ------------------------------------------------------------------- Wed Mar 6 14:20:44 UTC 2024 - Ondřej Súkup diff --git a/python-ruff.spec b/python-ruff.spec index 077a74d..02549af 100644 --- a/python-ruff.spec +++ b/python-ruff.spec @@ -33,7 +33,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: alts BuildRequires: alts -ExclusiveArch: %{rust_tier1_arches} riscv64 +# ExclusiveArch: %%{rust_tier1_arches} riscv64 +# ExclusiveArch: x86_64 aarch64 riscv64 %python_subpackages %description diff --git a/vendor.tar.zst b/vendor.tar.zst index 2a5f2c0..d310d8b 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:809267693f6ac1f1418835166afe1cb594cb0f3f05a2281dc2e031778251bdd0 -size 25342695 +oid sha256:2fba5abba0a9cd2b6bcd20a938370e8d8b602d809967933801c0d714539cc80d +size 25362305 From 4f989f3cf8a29c9a94f68f6dcdc6ac875231bbb4f5594b9697f7929d3faa337f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 11 Mar 2024 08:55:36 +0000 Subject: [PATCH 2/2] - update to 0.3.2 * Preview features * Improve single-with item formatting for Python 3.8 or older * Rule changes * [pyupgrade] Allow fixes for f-string rule regardless of line length (UP032) * [pycodestyle] Include actual conditions in E712 diagnostics * Bug fixes * Fix trailing kwargs end of line comment after slash * Fix unstable with items formatting * Avoid repeating function calls in f-string conversions * Fix E203 false positive for slices in format strings * Fix incorrect Parameter range for *args and **kwargs * Treat typing.Annotated subscripts as type definitions * 0.3.1 * Preview features * [pycodestyle] Fix E301 not triggering on decorated methods. * [pycodestyle] Respect isort settings in blank line rules (E3*) * [pycodestyle] Make blank lines in typing stub files optional (E3*) * [pylint] Implement singledispatch-method (E1519) * [pylint] Implement useless-exception-statement (W0133) * Rule changes * [flake8-debugger] Check for use of debugpy and ptvsd debug modules * [pyupgrade] Generate diagnostic for all valid f-string conversions regardless of line length (UP032) * [pep8_naming] Add fixes for N804 and N805 * CLI * Colorize the output of ruff format --diff * Make --config and --isolated global flags * Correctly expand tildes and environment variables in paths passed to --config * Configuration * Accept a PEP 440 version specifier for required-version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=46 --- python-ruff.changes | 41 +++++++++++++++++++++++++++++++++++++++++ python-ruff.spec | 4 +--- ruff-0.3.0.tar.gz | 3 --- ruff-0.3.2.tar.gz | 3 +++ vendor.tar.zst | 4 ++-- 5 files changed, 47 insertions(+), 8 deletions(-) delete mode 100644 ruff-0.3.0.tar.gz create mode 100644 ruff-0.3.2.tar.gz diff --git a/python-ruff.changes b/python-ruff.changes index 0f4523a..ee33311 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Mon Mar 11 08:52:49 UTC 2024 - Ondřej Súkup + +- update to 0.3.2 + * Preview features + * Improve single-with item formatting for Python 3.8 or older + * Rule changes + * [pyupgrade] Allow fixes for f-string rule regardless of line length (UP032) + * [pycodestyle] Include actual conditions in E712 diagnostics + * Bug fixes + * Fix trailing kwargs end of line comment after slash + * Fix unstable with items formatting + * Avoid repeating function calls in f-string conversions + * Fix E203 false positive for slices in format strings + * Fix incorrect Parameter range for *args and **kwargs + * Treat typing.Annotated subscripts as type definitions + * 0.3.1 + * Preview features + * [pycodestyle] Fix E301 not triggering on decorated methods. + * [pycodestyle] Respect isort settings in blank line rules (E3*) + * [pycodestyle] Make blank lines in typing stub files optional (E3*) + * [pylint] Implement singledispatch-method (E1519) + * [pylint] Implement useless-exception-statement (W0133) + * Rule changes + * [flake8-debugger] Check for use of debugpy and ptvsd debug modules + * [pyupgrade] Generate diagnostic for all valid f-string conversions regardless of line length (UP032) + * [pep8_naming] Add fixes for N804 and N805 + * CLI + * Colorize the output of ruff format --diff + * Make --config and --isolated global flags + * Correctly expand tildes and environment variables in paths passed to --config + * Configuration + * Accept a PEP 440 version specifier for required-version + * Implement isort's default-section setting + * Bug fixes + * Remove trailing space from CapWords message + * Respect external codes in file-level exemptions + * [flake8-raise] Avoid false-positives for parens-on-raise with future.exception() (RSE102) + * [pylint] Add fix for unary expressions in PLC2801 + * [ruff] Fix RUF028 not allowing # fmt: skip on match cases + ------------------------------------------------------------------- Fri Mar 8 16:57:10 UTC 2024 - Matej Cepl diff --git a/python-ruff.spec b/python-ruff.spec index 02549af..dc92725 100644 --- a/python-ruff.spec +++ b/python-ruff.spec @@ -19,7 +19,7 @@ %bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-ruff -Version: 0.3.0 +Version: 0.3.2 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT @@ -33,8 +33,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: alts BuildRequires: alts -# ExclusiveArch: %%{rust_tier1_arches} riscv64 -# ExclusiveArch: x86_64 aarch64 riscv64 %python_subpackages %description diff --git a/ruff-0.3.0.tar.gz b/ruff-0.3.0.tar.gz deleted file mode 100644 index 7515d4b..0000000 --- a/ruff-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0886184ba2618d815067cf43e005388967b67ab9c80df52b32ec1152ab49f53a -size 2057870 diff --git a/ruff-0.3.2.tar.gz b/ruff-0.3.2.tar.gz new file mode 100644 index 0000000..9d8a17c --- /dev/null +++ b/ruff-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa78ec9418eb1ca3db392811df3376b46471ae93792a81af2d1cbb0e5dcb5142 +size 2076440 diff --git a/vendor.tar.zst b/vendor.tar.zst index d310d8b..b2657f3 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2fba5abba0a9cd2b6bcd20a938370e8d8b602d809967933801c0d714539cc80d -size 25362305 +oid sha256:7d01a0ee56d3d5c68646b3cebac47c2eae3f85e1a26a0737f785fa81767c746e +size 25244788