From 74dd5f9916ce57de72ebd4b41dac258092a1652c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 01:50:54 +0530 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1216) 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.5.7 → v0.6.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.7...v0.6.8) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- nailgun/entity_mixins.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed53ec5a..e9f05f83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.7 + rev: v0.6.8 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/nailgun/entity_mixins.py b/nailgun/entity_mixins.py index e00cae9c..f7b3119d 100644 --- a/nailgun/entity_mixins.py +++ b/nailgun/entity_mixins.py @@ -120,7 +120,7 @@ def raise_task_timeout(): # pragma: no cover except KeyboardInterrupt: # raise_task_timeout will raise a KeyboardInterrupt when the timeout # expires. Catch the exception and raise TaskTimedOutError - raise TaskTimedOutError( # noqa: TRY200 - Not raising from KeyBoardInterrupt + raise TaskTimedOutError( # noqa: B904 - Not raising from KeyBoardInterrupt f"Timed out polling task {task_id}. Task information: {task_info}", task_id ) finally: