From 6c61e04b7997970b22b616fc5475a629f0fe38f288311563cf1751fbb60ef69b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 5 Mar 2024 21:09:48 +0000 Subject: [PATCH 1/2] Accepting request 1155229 from openSUSE:Factory:RISCV - Enable build on riscv64 OBS-URL: https://build.opensuse.org/request/show/1155229 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=42 --- python-ruff.changes | 5 +++++ python-ruff.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-ruff.changes b/python-ruff.changes index d045f85..6ee32db 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 5 14:12:37 UTC 2024 - Andreas Schwab + +- Enable build on riscv64 + ------------------------------------------------------------------- Wed Feb 21 16:49:44 UTC 2024 - Ondřej Súkup diff --git a/python-ruff.spec b/python-ruff.spec index be1157f..6f6ba52 100644 --- a/python-ruff.spec +++ b/python-ruff.spec @@ -33,7 +33,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: alts BuildRequires: alts -ExclusiveArch: %{rust_tier1_arches} +ExclusiveArch: %{rust_tier1_arches} riscv64 %python_subpackages %description From 4bc9116680c8f404fa754c005f78765a42f2c5f3165c62548515d22d36d1cb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 6 Mar 2024 14:23:47 +0000 Subject: [PATCH 2/2] =?UTF-8?q?-=20update=20to=200.3.0=20=20*=20Preview=20?= =?UTF-8?q?features=20=20=20=20*=20[flake8-bandit]=20Remove=20suspicious-l?= =?UTF-8?q?xml-import=20(S410)=20=20=20=20*=20[pycodestyle]=20Allow=20os.e?= =?UTF-8?q?nviron=20modifications=20between=20imports=20(E402)=20=20=20=20?= =?UTF-8?q?*=20[pycodestyle]=20Don't=20warn=20about=20a=20single=20whitesp?= =?UTF-8?q?ace=20character=20before=20a=20comma=20in=20a=20tuple=20(E203)?= =?UTF-8?q?=20=20*=20Rule=20changes=20=20=20=20*=20[eradicate]=20Detect=20?= =?UTF-8?q?commented=20out=20case=20statements=20(ERA001)=20=20=20=20*=20[?= =?UTF-8?q?eradicate]=20Detect=20single-line=20code=20for=20try:,=20except?= =?UTF-8?q?:,=20etc.=20(ERA001)=20=20=20=20*=20[flake8-boolean-trap]=20All?= =?UTF-8?q?ow=20boolean=20positionals=20in=20=5F=5Fpost=5Finit=5F=5F=20=20?= =?UTF-8?q?=20=20*=20[flake8-copyright]=20Allow=20=C2=A9=20in=20copyright?= =?UTF-8?q?=20notices=20=20=20=20*=20[isort]:=20Use=20one=20blank=20line?= =?UTF-8?q?=20after=20imports=20in=20typing=20stub=20files=20=20=20=20*=20?= =?UTF-8?q?[pylint]=20New=20Rule=20dict-iter-missing-items=20(PLE1141)=20?= =?UTF-8?q?=20=20=20*=20[pylint]=20Ignore=20sys.version=20and=20sys.platfo?= =?UTF-8?q?rm=20(PLR1714)=20=20=20=20*=20[pyupgrade]=20Detect=20literals?= =?UTF-8?q?=20with=20unary=20operators=20(UP018)=20=20=20=20*=20[ruff]=20E?= =?UTF-8?q?xpand=20rule=20for=20list(iterable).pop(0)=20idiom=20(RUF015)?= =?UTF-8?q?=20=20*=20Formatter=20=20=20*=20This=20release=20introduces=20t?= =?UTF-8?q?he=20Ruff=202024.2=20style,=20stabilizing=20the=20following=20c?= =?UTF-8?q?hanges:=20=20=20=20*=20Prefer=20splitting=20the=20assignment's?= =?UTF-8?q?=20value=20over=20the=20target=20or=20type=20annotation=20=20?= =?UTF-8?q?=20=20*=20Remove=20blank=20lines=20before=20class=20docstrings?= =?UTF-8?q?=20=20=20=20*=20Wrap=20multiple=20context=20managers=20in=20wit?= =?UTF-8?q?h=20parentheses=20when=20targeting=20Python=203.9=20or=20newer?= =?UTF-8?q?=20=20=20=20*=20Add=20a=20blank=20line=20after=20nested=20class?= =?UTF-8?q?es=20with=20a=20dummy=20body=20(...)=20in=20typing=20stub=20fil?= =?UTF-8?q?es=20=20=20=20*=20Reduce=20vertical=20spacing=20for=20classes?= =?UTF-8?q?=20and=20functions=20with=20a=20dummy=20(...)=20body=20=20=20?= =?UTF-8?q?=20*=20Add=20a=20blank=20line=20after=20the=20module=20docstrin?= =?UTF-8?q?g=20=20=20=20*=20Parenthesize=20long=20type=20hints=20in=20assi?= =?UTF-8?q?gnments=20=20=20=20*=20Preserve=20indent=20for=20single=20multi?= =?UTF-8?q?line-string=20call-expressions=20=20=20=20*=20Normalize=20hex?= =?UTF-8?q?=20escape=20and=20unicode=20escape=20sequences=20=20=20=20*=20F?= =?UTF-8?q?ormat=20module=20docstrings=20=20*=20CLI=20=20=20=20*=20Explici?= =?UTF-8?q?tly=20disallow=20extend=20as=20part=20of=20a=20--config=20flag?= =?UTF-8?q?=20=20=20=20*=20Remove=20build=20from=20the=20default=20exclusi?= =?UTF-8?q?on=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=43 --- python-ruff.changes | 51 +++++++++++++++++++++++++++++++++++++++++++++ python-ruff.spec | 2 +- ruff-0.2.2.tar.gz | 3 --- ruff-0.3.0.tar.gz | 3 +++ vendor.tar.zst | 4 ++-- 5 files changed, 57 insertions(+), 6 deletions(-) delete mode 100644 ruff-0.2.2.tar.gz create mode 100644 ruff-0.3.0.tar.gz diff --git a/python-ruff.changes b/python-ruff.changes index 6ee32db..21727f1 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,54 @@ +------------------------------------------------------------------- +Wed Mar 6 14:20:44 UTC 2024 - Ondřej Súkup + +- update to 0.3.0 + * Preview features + * [flake8-bandit] Remove suspicious-lxml-import (S410) + * [pycodestyle] Allow os.environ modifications between imports (E402) + * [pycodestyle] Don't warn about a single whitespace character before a comma in a tuple (E203) + * Rule changes + * [eradicate] Detect commented out case statements (ERA001) + * [eradicate] Detect single-line code for try:, except:, etc. (ERA001) + * [flake8-boolean-trap] Allow boolean positionals in __post_init__ + * [flake8-copyright] Allow © in copyright notices + * [isort]: Use one blank line after imports in typing stub files + * [pylint] New Rule dict-iter-missing-items (PLE1141) + * [pylint] Ignore sys.version and sys.platform (PLR1714) + * [pyupgrade] Detect literals with unary operators (UP018) + * [ruff] Expand rule for list(iterable).pop(0) idiom (RUF015) + * Formatter + * This release introduces the Ruff 2024.2 style, stabilizing the following changes: + * Prefer splitting the assignment's value over the target or type annotation + * Remove blank lines before class docstrings + * Wrap multiple context managers in with parentheses when targeting Python 3.9 or newer + * Add a blank line after nested classes with a dummy body (...) in typing stub files + * Reduce vertical spacing for classes and functions with a dummy (...) body + * Add a blank line after the module docstring + * Parenthesize long type hints in assignments + * Preserve indent for single multiline-string call-expressions + * Normalize hex escape and unicode escape sequences + * Format module docstrings + * CLI + * Explicitly disallow extend as part of a --config flag + * Remove build from the default exclusion list + * Deprecate ruff , ruff --explain, ruff --clean, and ruff --generate-shell-completion + in favor of ruff check , ruff rule, ruff clean, and ruff generate-shell-completion + * Remove the deprecated CLI option --format from ruff rule and ruff linter + * Bug fixes + * [flake8-bugbear] Avoid adding default initializers to stubs (B006) + * [flake8-type-checking] Respect runtime-required decorators for function signatures + * [pycodestyle] Mark fixes overlapping with a multiline string as unsafe (W293) + * [pydocstyle] Trim whitespace when removing blank lines after section (D413) + * [pylint] Delete entire statement, including semicolons (PLR0203) + * [ruff] Avoid f-string false positives in gettext calls (RUF027) + * Fix ruff crashing on PowerPC systems because of too small page size + * Performance + * Add cold attribute to less likely printer queue branches in the formatter + * Skip unnecessary string normalization in the formatter + * Documentation + * Remove "Beta" Label from formatter documentation + * line-length option: fix link to pycodestyle.max-line-length + ------------------------------------------------------------------- Tue Mar 5 14:12:37 UTC 2024 - Andreas Schwab diff --git a/python-ruff.spec b/python-ruff.spec index 6f6ba52..077a74d 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.2.2 +Version: 0.3.0 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/ruff-0.2.2.tar.gz b/ruff-0.2.2.tar.gz deleted file mode 100644 index a6ffc23..0000000 --- a/ruff-0.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e62ed7f36b3068a30ba39193a14274cd706bc486fad521276458022f7bccb31d -size 2040633 diff --git a/ruff-0.3.0.tar.gz b/ruff-0.3.0.tar.gz new file mode 100644 index 0000000..7515d4b --- /dev/null +++ b/ruff-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0886184ba2618d815067cf43e005388967b67ab9c80df52b32ec1152ab49f53a +size 2057870 diff --git a/vendor.tar.zst b/vendor.tar.zst index 986d290..2a5f2c0 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8341404ca81987ddf5b582a271723ed37012ba9c1c1824873c7b504b8260a8ab -size 25260249 +oid sha256:809267693f6ac1f1418835166afe1cb594cb0f3f05a2281dc2e031778251bdd0 +size 25342695