From f74cb95efd5f56a4916718a58624473ddf877b904bdc3b257fa576e1608dc72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 21 Feb 2024 16:54:24 +0000 Subject: [PATCH] - update to 0.2.2 * Highlights include: * Initial support formatting f-strings (in --preview). * Support for overriding arbitrary configuration options via the CLI through an expanded --config argument (e.g., --config "lint.isort.combine-as-imports=false"). * Significant performance improvements in Ruff's lexer, parser, and lint rules. * Preview features * Implement minimal f-string formatting * [pycodestyle] Add blank line(s) rules (E301, E302, E303, E304, E305, E306) * [refurb] Implement readlines_in_for (FURB129) * Rule changes * [ruff] Ensure closing parentheses for multiline sequences are always on their own line (RUF022, RUF023) * [numpy] Add missing deprecation violations (NPY002) * [flake8-bandit] Detect mark_safe usages in decorators * [ruff] Expand asyncio-dangling-task (RUF006) to include new_event_loop * [flake8-pyi] Ignore 'unused' private type dicts in class scopes * Formatter * Docstring formatting: Preserve tab indentation when using indent-style=tabs * Disable top-level docstring formatting for notebooks * Stabilize quote-style's preserve mode * CLI * Allow arbitrary configuration options to be overridden via the CLI * Bug fixes * Make show-settings filters directory-agnostic * Respect duplicates when rewriting type aliases * Respect tuple assignments in typing analyzer * Use atomic write when persisting cache * Use non-parenthesized range for DebugText * [flake8-simplify] Avoid false positive with async for loops (SIM113) * [flake8-trio] Respect async with in timeout-without-await OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=40 --- python-ruff.changes | 50 +++++++++++++++++++++++++++++++++++++++++++++ python-ruff.spec | 2 +- ruff-0.2.1.tar.gz | 3 --- ruff-0.2.2.tar.gz | 3 +++ vendor.tar.zst | 4 ++-- 5 files changed, 56 insertions(+), 6 deletions(-) delete mode 100644 ruff-0.2.1.tar.gz create mode 100644 ruff-0.2.2.tar.gz diff --git a/python-ruff.changes b/python-ruff.changes index 2094f34..d045f85 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Wed Feb 21 16:49:44 UTC 2024 - Ondřej Súkup + +- update to 0.2.2 + * Highlights include: + * Initial support formatting f-strings (in --preview). + * Support for overriding arbitrary configuration options via the CLI + through an expanded --config argument (e.g., --config "lint.isort.combine-as-imports=false"). + * Significant performance improvements in Ruff's lexer, parser, and lint rules. + * Preview features + * Implement minimal f-string formatting + * [pycodestyle] Add blank line(s) rules (E301, E302, E303, E304, E305, E306) + * [refurb] Implement readlines_in_for (FURB129) + * Rule changes + * [ruff] Ensure closing parentheses for multiline sequences are always on their own line (RUF022, RUF023) + * [numpy] Add missing deprecation violations (NPY002) + * [flake8-bandit] Detect mark_safe usages in decorators + * [ruff] Expand asyncio-dangling-task (RUF006) to include new_event_loop + * [flake8-pyi] Ignore 'unused' private type dicts in class scopes + * Formatter + * Docstring formatting: Preserve tab indentation when using indent-style=tabs + * Disable top-level docstring formatting for notebooks + * Stabilize quote-style's preserve mode + * CLI + * Allow arbitrary configuration options to be overridden via the CLI + * Bug fixes + * Make show-settings filters directory-agnostic + * Respect duplicates when rewriting type aliases + * Respect tuple assignments in typing analyzer + * Use atomic write when persisting cache + * Use non-parenthesized range for DebugText + * [flake8-simplify] Avoid false positive with async for loops (SIM113) + * [flake8-trio] Respect async with in timeout-without-await + * [perflint] Catch a wider range of mutations in PERF101 + * [pycodestyle] Fix E30X panics on blank lines with trailing white spaces + * [pydocstyle] Allow using parameters as a subsection header (D405) + * [pydocstyle] Fix blank-line docstring rules for module-level docstrings + * [pylint] Accept 0.0 and 1.0 as common magic values (PLR2004) + * [pylint] Avoid suggesting set rewrites for non-hashable types + * [ruff] Avoid false negatives with string literals inside of method calls (RUF027) + * [ruff] Fix panic on with f-string detection (RUF027) + * [ruff] Ignore builtins when detecting missing f-strings + * Performance + * Use memchr for string lexing + * Use memchr for tab-indentation detection + * Reduce Result size by using Box instead of String + * Reduce size of Expr from 80 to 64 bytes + * Improve trailing comma rule performance + * Remove unnecessary string cloning from the parser + ------------------------------------------------------------------- Wed Feb 7 10:16:16 UTC 2024 - Ondřej Súkup diff --git a/python-ruff.spec b/python-ruff.spec index 56b599d..be1157f 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.1 +Version: 0.2.2 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/ruff-0.2.1.tar.gz b/ruff-0.2.1.tar.gz deleted file mode 100644 index 3ee8778..0000000 --- a/ruff-0.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b42b5d8677cd0c72b99fcaf068ffc62abb5a19e71b4a3b9cfa50658a0af02f1 -size 2009158 diff --git a/ruff-0.2.2.tar.gz b/ruff-0.2.2.tar.gz new file mode 100644 index 0000000..a6ffc23 --- /dev/null +++ b/ruff-0.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e62ed7f36b3068a30ba39193a14274cd706bc486fad521276458022f7bccb31d +size 2040633 diff --git a/vendor.tar.zst b/vendor.tar.zst index 4264de8..986d290 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cbfbeb2ba23a5234b5ce2ffe0e2bcc627af22bbef584444663c8ffd8487d68da -size 25227373 +oid sha256:8341404ca81987ddf5b582a271723ed37012ba9c1c1824873c7b504b8260a8ab +size 25260249