From 24a40b579559e569d0cd27b84df9154f554bbd62 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 23:07:42 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.6.5) - [github.com/RobertCraigie/pyright-python: v1.1.379 → v1.1.380](https://github.com/RobertCraigie/pyright-python/compare/v1.1.379...v1.1.380) - [github.com/sphinx-contrib/sphinx-lint: v0.9.1 → v1.0.0](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.9.1...v1.0.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1755b678..549cc02e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.4 + rev: v0.6.5 hooks: - id: ruff args: [--fix] @@ -42,7 +42,7 @@ repos: - id: mypy - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.379 + rev: v1.1.380 hooks: - id: pyright # ignore warnings about new version being available, no other warnings @@ -95,6 +95,6 @@ repos: args: [--autofix] - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v0.9.1 + rev: v1.0.0 hooks: - id: sphinx-lint From bbf0daefe97b7e0b5abd6e7e53acdb46b091762f Mon Sep 17 00:00:00 2001 From: Zac Hatfield-Dodds Date: Mon, 16 Sep 2024 17:09:40 -0700 Subject: [PATCH 2/2] rst-lint fix --- docs/rules.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules.rst b/docs/rules.rst index 681de671..e7ff3324 100644 --- a/docs/rules.rst +++ b/docs/rules.rst @@ -71,7 +71,7 @@ ASYNC116 : long-sleep-not-forever :func:`trio.sleep`/:func:`anyio.sleep` with >24 hour interval should usually be :func:`trio.sleep_forever`/:func:`anyio.sleep_forever`. ASYNC118 : cancelled-class-saved - Don't assign the value of :func:`anyio.get_cancelled_exc_class()` to a variable, since that breaks linter checks and multi-backend programs. + Don't assign the value of :func:`anyio.get_cancelled_exc_class` to a variable, since that breaks linter checks and multi-backend programs. _`ASYNC119` : yield-in-cm-in-async-gen ``yield`` in context manager in async generator is unsafe, the cleanup may be delayed until ``await`` is no longer allowed.