From 91893edc355ff74e6d21529d12b101337e5664c11cc58f512c1546c924356b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 18 Mar 2024 13:48:21 +0000 Subject: [PATCH] - update to 0.3.3 * Preview features * [flake8-bandit]: Implement S610 rule * [pycodestyle] Implement blank-line-at-end-of-file (W391) * [pycodestyle] Implement redundant-backslash (E502) * [pylint] - implement redeclared-assigned-name (W0128) * Rule changes * [flake8_comprehensions] Handled special case for C400 which also matches C416 * [flake8-bandit] Implement upstream updates for S311, S324 and S605 * [pyflakes] Remove F401 fix for __init__ imports by default and allow opt-in to unsafe fix * [pylint] Implement invalid-bool-return-type (E304) * [pylint] Include builtin warnings in useless-exception-statement (PLW0133) * CLI * Add message on success to ruff check * Bug fixes * [PIE970] Allow trailing ellipsis in typing.TYPE_CHECKING * Avoid TRIO115 if the argument is a variable * [F811] Avoid removing shadowed imports that point to different symbols * Fix F821 and F822 false positives in .pyi files * Fix F821 false negatives in .py files when from __future__ import annotations is active * Fix case where Indexer fails to identify continuation preceded by newline #10351 * Sort hash maps in Settings display * Track conditional deletions in the semantic model * [C413] Wrap expressions in parentheses when negating * [pycodestyle] Do not ignore lines before the first logical line in blank lines rules. * [pycodestyle] Do not trigger E225 and E275 when the next token is a ')' * [pylint] Avoid false-positive slot non-assignment for __dict__ (PLE0237) * Gate f-string struct size test for Rustc < 1.76 * Documentation * Use ruff.toml format in README OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=48 --- python-ruff.changes | 37 +++++++++++++++++++++++++++++++++++++ python-ruff.spec | 2 +- ruff-0.3.2.tar.gz | 3 --- ruff-0.3.3.tar.gz | 3 +++ vendor.tar.zst | 4 ++-- 5 files changed, 43 insertions(+), 6 deletions(-) delete mode 100644 ruff-0.3.2.tar.gz create mode 100644 ruff-0.3.3.tar.gz diff --git a/python-ruff.changes b/python-ruff.changes index ee33311..cb9f984 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Mon Mar 18 13:45:45 UTC 2024 - Ondřej Súkup + +- update to 0.3.3 + * Preview features + * [flake8-bandit]: Implement S610 rule + * [pycodestyle] Implement blank-line-at-end-of-file (W391) + * [pycodestyle] Implement redundant-backslash (E502) + * [pylint] - implement redeclared-assigned-name (W0128) + * Rule changes + * [flake8_comprehensions] Handled special case for C400 which also matches C416 + * [flake8-bandit] Implement upstream updates for S311, S324 and S605 + * [pyflakes] Remove F401 fix for __init__ imports by default and allow opt-in to unsafe fix + * [pylint] Implement invalid-bool-return-type (E304) + * [pylint] Include builtin warnings in useless-exception-statement (PLW0133) + * CLI + * Add message on success to ruff check + * Bug fixes + * [PIE970] Allow trailing ellipsis in typing.TYPE_CHECKING + * Avoid TRIO115 if the argument is a variable + * [F811] Avoid removing shadowed imports that point to different symbols + * Fix F821 and F822 false positives in .pyi files + * Fix F821 false negatives in .py files when from __future__ import annotations is active + * Fix case where Indexer fails to identify continuation preceded by newline #10351 + * Sort hash maps in Settings display + * Track conditional deletions in the semantic model + * [C413] Wrap expressions in parentheses when negating + * [pycodestyle] Do not ignore lines before the first logical line in blank lines rules. + * [pycodestyle] Do not trigger E225 and E275 when the next token is a ')' + * [pylint] Avoid false-positive slot non-assignment for __dict__ (PLE0237) + * Gate f-string struct size test for Rustc < 1.76 + * Documentation + * Use ruff.toml format in README + * [RUF008] Make it clearer that a mutable default in a dataclass is only valid if it is typed as a ClassVar + * [pylint] Extend docs and test in invalid-str-return-type (E307) + * Remove . from check and format commands + ------------------------------------------------------------------- Mon Mar 11 08:52:49 UTC 2024 - Ondřej Súkup diff --git a/python-ruff.spec b/python-ruff.spec index dc92725..17c3220 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.2 +Version: 0.3.3 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/ruff-0.3.2.tar.gz b/ruff-0.3.2.tar.gz deleted file mode 100644 index 9d8a17c..0000000 --- a/ruff-0.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa78ec9418eb1ca3db392811df3376b46471ae93792a81af2d1cbb0e5dcb5142 -size 2076440 diff --git a/ruff-0.3.3.tar.gz b/ruff-0.3.3.tar.gz new file mode 100644 index 0000000..9210ea4 --- /dev/null +++ b/ruff-0.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38671be06f57a2f8aba957d9f701ea889aa5736be806f18c0cd03d6ff0cbca8d +size 2127676 diff --git a/vendor.tar.zst b/vendor.tar.zst index b2657f3..15ec53a 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7d01a0ee56d3d5c68646b3cebac47c2eae3f85e1a26a0737f785fa81767c746e -size 25244788 +oid sha256:3167addd9225cee0f05a3fc09395d030c3690b4bc45d29ae634ee9ce3d3103b1 +size 25664407