Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#291)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.5](astral-sh/ruff-pre-commit@v0.6.4...v0.6.5)
- [github.com/RobertCraigie/pyright-python: v1.1.379 → v1.1.380](RobertCraigie/pyright-python@v1.1.379...v1.1.380)
- [github.com/sphinx-contrib/sphinx-lint: v0.9.1 → v1.0.0](sphinx-contrib/sphinx-lint@v0.9.1...v1.0.0)

* rst-lint fix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Zac Hatfield-Dodds <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Zac-HD authored Sep 17, 2024
1 parent 4d0423a commit 7be7cac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7be7cac

Please sign in to comment.