From 9b7901e47721da07951fa40e893fdb3d3e834bd0360ad8c4306238228ccce451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 21 Dec 2023 23:29:32 +0000 Subject: [PATCH] - update to 0.1.9 * Breaking changes * Add site-packages to default exclusions * Preview features * Fix: Avoid parenthesizing subscript targets and values * [pylint] Implement too-many-locals (PLR0914) * Implement reimplemented_operator (FURB118) * Add a rule to detect string members in runtime-evaluated unions * Implement no_blank_line_before_class_docstring preview style * Rule changes * CONSTANT_CASE variables are improperly flagged for yoda violation (SIM300) * [flake8-pyi] Cover ParamSpecs and TypeVarTuples (PYI018) * [flake8-bugbear] Add fix for zip-without-explicit-strict (B905) * Add fix to automatically remove print and pprint statements (T201, T203) * Prefer Never to NoReturn in auto-typing in Python >= 3.11 (ANN201) * Formatter * can_omit_optional_parentheses: Exit early for unparenthesized expressions * Fix dynamic mode with doctests so that it doesn't exceed configured line width * Fix can_omit_optional_parentheses for expressions with a right most fstring * Add target_version to formatter options * CLI * Update ruff format --check to display message for already formatted files * Bug fixes * Reverse order of arguments for operator.contains * Iterate over lambdas in deferred type annotations * Fix panic in D208 with multibyte indent * Add support for NoReturn in auto-return-typing * Allow removal of typing from exempt-modules * Avoid mutable-class-default violations for Pydantic subclasses * Fix dropped union expressions for piped non-types in PYI055 autofix OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=24 --- python-ruff.changes | 45 +++++++++++++++++++++++++++++++++++++++++++++ python-ruff.spec | 2 +- ruff-0.1.8.tar.gz | 3 --- ruff-0.1.9.tar.gz | 3 +++ vendor.tar.zst | 4 ++-- 5 files changed, 51 insertions(+), 6 deletions(-) delete mode 100644 ruff-0.1.8.tar.gz create mode 100644 ruff-0.1.9.tar.gz diff --git a/python-ruff.changes b/python-ruff.changes index 2ae365e..63132c7 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Thu Dec 21 23:27:31 UTC 2023 - Ondřej Súkup + +- update to 0.1.9 + * Breaking changes + * Add site-packages to default exclusions + * Preview features + * Fix: Avoid parenthesizing subscript targets and values + * [pylint] Implement too-many-locals (PLR0914) + * Implement reimplemented_operator (FURB118) + * Add a rule to detect string members in runtime-evaluated unions + * Implement no_blank_line_before_class_docstring preview style + * Rule changes + * CONSTANT_CASE variables are improperly flagged for yoda violation (SIM300) + * [flake8-pyi] Cover ParamSpecs and TypeVarTuples (PYI018) + * [flake8-bugbear] Add fix for zip-without-explicit-strict (B905) + * Add fix to automatically remove print and pprint statements (T201, T203) + * Prefer Never to NoReturn in auto-typing in Python >= 3.11 (ANN201) + * Formatter + * can_omit_optional_parentheses: Exit early for unparenthesized expressions + * Fix dynamic mode with doctests so that it doesn't exceed configured line width + * Fix can_omit_optional_parentheses for expressions with a right most fstring + * Add target_version to formatter options + * CLI + * Update ruff format --check to display message for already formatted files + * Bug fixes + * Reverse order of arguments for operator.contains + * Iterate over lambdas in deferred type annotations + * Fix panic in D208 with multibyte indent + * Add support for NoReturn in auto-return-typing + * Allow removal of typing from exempt-modules + * Avoid mutable-class-default violations for Pydantic subclasses + * Fix dropped union expressions for piped non-types in PYI055 autofix + * Enable annotation quoting for multi-line expressions + * Deduplicate edits when quoting annotations + * Prevent invalid utf8 indexing in cell magic detection + * Avoid nested quotations in auto-quoting fix + * Add base-class inheritance detection to flake8-django rules + * Avoid asyncio-dangling-task violations on shadowed bindings + * Documentation + * Fix blog post URL in changelog + * Add error suppression hint for multi-line strings + * Fix typo in SemanticModel.parent_expression docstring + * Document link between import sorting and formatter + ------------------------------------------------------------------- Thu Dec 14 10:14:53 UTC 2023 - Ondřej Súkup diff --git a/python-ruff.spec b/python-ruff.spec index 605de93..67fab6c 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.1.8 +Version: 0.1.9 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/ruff-0.1.8.tar.gz b/ruff-0.1.8.tar.gz deleted file mode 100644 index 3a483e0..0000000 --- a/ruff-0.1.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7ee467677467526cfe135eab86a40a0e8db43117936ac4f9b469ce9cdb3fb62 -size 1891750 diff --git a/ruff-0.1.9.tar.gz b/ruff-0.1.9.tar.gz new file mode 100644 index 0000000..ea857c0 --- /dev/null +++ b/ruff-0.1.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b041dee2734719ddbb4518f762c982f2e912e7f28b8ee4fe1dee0b15d1b6e800 +size 1907145 diff --git a/vendor.tar.zst b/vendor.tar.zst index d706a24..7344c46 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4df5a0a6696f132b92942330c8ef447f82c62372e23c3c31b99dc39cab2bb4fa -size 33010041 +oid sha256:2317ab728e7cb05d8f64c79d956a6682e640aeeadf4058593ed202a3608018fa +size 32986496