From 7dbbac9df38d2219bc26dc52fb832aba7437b75e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 01:50:12 +0000 Subject: [PATCH] =?UTF-8?q?[pre-commit.ci]=20pre-commit=20autoupdate=20ruf?= =?UTF-8?q?f-pre-commit:=20v0.4.2=20=E2=86=92=20v0.4.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.2 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.2...v0.4.3) * Ignore `Instrument` being ABC and update testing ruff version --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: CoolCat467 <52022020+CoolCat467@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/trio/_abc.py | 2 +- test-requirements.in | 2 +- test-requirements.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5eecbfb4a9..93306dcf71 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.2 + rev: v0.4.3 hooks: - id: ruff types: [file] diff --git a/src/trio/_abc.py b/src/trio/_abc.py index 7c24b2fc5a..73cdd52715 100644 --- a/src/trio/_abc.py +++ b/src/trio/_abc.py @@ -68,7 +68,7 @@ def deadline_to_sleep_time(self, deadline: float) -> float: """ -class Instrument(metaclass=ABCMeta): +class Instrument(metaclass=ABCMeta): # noqa: B024 # conceptually is ABC """The interface for run loop instrumentation. Instruments don't have to inherit from this abstract base class, and all diff --git a/test-requirements.in b/test-requirements.in index f0d83141d2..ed7055d58a 100644 --- a/test-requirements.in +++ b/test-requirements.in @@ -13,7 +13,7 @@ cryptography>=41.0.0 # cryptography<41 segfaults on pypy3.10 black; implementation_name == "cpython" mypy; implementation_name == "cpython" types-pyOpenSSL; implementation_name == "cpython" # and annotations -ruff >= 0.1.5 +ruff >= 0.4.3 astor # code generation pip-tools >= 6.13.0 codespell diff --git a/test-requirements.txt b/test-requirements.txt index ef27f61031..18dc66fab7 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -122,7 +122,7 @@ pytz==2024.1 # via babel requests==2.31.0 # via sphinx -ruff==0.4.2 +ruff==0.4.3 # via -r test-requirements.in sniffio==1.3.1 # via -r test-requirements.in