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: