diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cace88f..8b42a4f9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,12 +9,12 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v4.8.2 + rev: v4.8.3 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: debug-statements - id: check-builtin-literals @@ -38,13 +38,13 @@ repos: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.11 + rev: v0.12.8 hooks: - id: ruff args: [--fix] - id: ruff-format - repo: https://github.com/cdce8p/python-typing-update - rev: v0.7.1 + rev: v0.7.2 hooks: - id: python-typing-update stages: [manual] @@ -58,7 +58,7 @@ repos: # hooks: # - id: codespell - repo: https://github.com/pre-commit/mirrors-mypy.git - rev: v1.15.0 + rev: v1.17.1 hooks: - id: mypy alias: mypy-py313 diff --git a/flux_led/sock.py b/flux_led/sock.py index a8888ff7..27140406 100644 --- a/flux_led/sock.py +++ b/flux_led/sock.py @@ -26,7 +26,7 @@ def _retry_wrap( **kwargs: Any, ) -> Any: attempts_remaining = retry + 1 - while attempts_remaining: # noqa: RET503 + while attempts_remaining: attempts_remaining -= 1 try: ret = func(self, *args, **kwargs)