From 95db8002aaf14311da5b4d680df0b75062b64e25b144bd95b0bfa312a858f635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 7 Nov 2023 11:33:31 +0000 Subject: [PATCH] - Update to 0.1.4 * Preview features * [flake8-trio] Implement timeout-without-await (TRIO001) * [numpy] Implement NumPy 2.0 migration rule (NPY200) * [pylint] Implement bad-open-mode (W1501) * [pylint] Implement import-outside-toplevel (C0415) rule * [pylint] Implement useless-with-lock (W2101) * [pyupgrade] Implement timeout-error-alias (UP041) * [refurb] Implement isinstance-type-none (FURB168) * Detect confusable Unicode-to-Unicode units in RUF001, RUF002, and RUF003 * Add newline after module docstrings in preview style * Formatter * Add a note on line-too-long to the formatter docs * Preserve trailing statement semicolons when using fmt: skip * Preserve trailing semicolons when using fmt: off * Avoid duplicating linter-formatter compatibility warnings * Avoid inserting a newline after function docstrings * Insert newline between docstring and following own line comment * Split tuples in return positions by comma first * Avoid treating byte strings as docstrings * Add --line-length option to format command * Avoid parenthesizing unsplittable because of comments * CLI * Add --output-format to ruff rule and ruff linter * Bug fixes * Respect --force-exclude in lint.exclude and format.exclude * Respect --extend-per-file-ignores on the CLI * Extend bad-dunder-method-name to permit __index__ * Fix panic with 8 in octal escape * Avoid raising D300 when both triple quote styles are present OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruff?expand=0&rev=14 --- _service | 2 +- python-ruff.changes | 54 +++++++++++++++++++++++++++++++++++++++++++++ python-ruff.spec | 2 +- ruff-0.1.3.tar.gz | 3 --- ruff-0.1.4.tar.gz | 3 +++ vendor.tar.zst | 4 ++-- 6 files changed, 61 insertions(+), 7 deletions(-) delete mode 100644 ruff-0.1.3.tar.gz create mode 100644 ruff-0.1.4.tar.gz diff --git a/_service b/_service index 9b57a9a..c08ceb2 100644 --- a/_service +++ b/_service @@ -1,7 +1,7 @@ - ruff-0.1.3.tar.gz + ruff-0.1.4.tar.gz zst true diff --git a/python-ruff.changes b/python-ruff.changes index 216eeb3..f4df6ba 100644 --- a/python-ruff.changes +++ b/python-ruff.changes @@ -1,3 +1,57 @@ +------------------------------------------------------------------- +Tue Nov 7 11:29:10 UTC 2023 - Ondřej Súkup + +- Update to 0.1.4 + * Preview features + * [flake8-trio] Implement timeout-without-await (TRIO001) + * [numpy] Implement NumPy 2.0 migration rule (NPY200) + * [pylint] Implement bad-open-mode (W1501) + * [pylint] Implement import-outside-toplevel (C0415) rule + * [pylint] Implement useless-with-lock (W2101) + * [pyupgrade] Implement timeout-error-alias (UP041) + * [refurb] Implement isinstance-type-none (FURB168) + * Detect confusable Unicode-to-Unicode units in RUF001, RUF002, and RUF003 + * Add newline after module docstrings in preview style + * Formatter + * Add a note on line-too-long to the formatter docs + * Preserve trailing statement semicolons when using fmt: skip + * Preserve trailing semicolons when using fmt: off + * Avoid duplicating linter-formatter compatibility warnings + * Avoid inserting a newline after function docstrings + * Insert newline between docstring and following own line comment + * Split tuples in return positions by comma first + * Avoid treating byte strings as docstrings + * Add --line-length option to format command + * Avoid parenthesizing unsplittable because of comments + * CLI + * Add --output-format to ruff rule and ruff linter + * Bug fixes + * Respect --force-exclude in lint.exclude and format.exclude + * Respect --extend-per-file-ignores on the CLI + * Extend bad-dunder-method-name to permit __index__ + * Fix panic with 8 in octal escape + * Avoid raising D300 when both triple quote styles are present + * Consider unterminated f-strings in FStringRanges + * Avoid including literal shell=True for truthy, non-True diagnostics + * Avoid triggering single-element test for starred expressions + * Detect and ignore Jupyter automagics + * Fix invalid E231 error with f-strings + * Avoid triggering NamedTuple rewrite with starred annotation + * Avoid un-setting bracket flag in logical lines + * Place 'r' prefix before 'f' for raw format strings + * Remove trailing periods from NumPy 2.0 code actions + * Fix bug where PLE1307 was raised when formatting %c with characters + * Remove unicode flag from comparable + * Improve B015 message + * Use fixedOverflowWidgets for playground popover + * Mark byte_bounds as a non-backwards-compatible NumPy 2.0 change + * Internals + * Add a dedicated cache directory per Ruff version + * Allow selective caching for --fix and --diff + * Improve performance of comment parsing + * Improve performance of string parsing + * Use a dedicated sort key for isort import sorting + ------------------------------------------------------------------- Fri Oct 27 07:53:47 UTC 2023 - Ondřej Súkup diff --git a/python-ruff.spec b/python-ruff.spec index 24f033c..ece2302 100644 --- a/python-ruff.spec +++ b/python-ruff.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-ruff -Version: 0.1.3 +Version: 0.1.4 Release: 0 Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/ruff-0.1.3.tar.gz b/ruff-0.1.3.tar.gz deleted file mode 100644 index b281ea5..0000000 --- a/ruff-0.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ba6145369a151401d5db79f0a47d50e470384d0d89d0d6f7fab0b589ad07c34 -size 1667977 diff --git a/ruff-0.1.4.tar.gz b/ruff-0.1.4.tar.gz new file mode 100644 index 0000000..74a23bf --- /dev/null +++ b/ruff-0.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21520ecca4cc555162068d87c747b8f95e1e95f8ecfcbbe59e8dd00710586315 +size 1685809 diff --git a/vendor.tar.zst b/vendor.tar.zst index f8f872b..19801e9 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:05f649636e77d37ad2720624f9cd6144fe94654a55516de87d1a35fb68fa9bb8 -size 29012845 +oid sha256:33ac57ea1fb001b61467eec9757cd53b8624976c8381e67fa7b3f866d671f84f +size 29032377