diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8259a0bc..98391378 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,14 +19,14 @@ repos: - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.21 + rev: v0.16.2 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.49.0 + rev: v0.49.1 hooks: - id: markdownlint-fix args: [--config=pyproject.toml, --configPointer=/tool/markdownlint] diff --git a/repid/_runner.py b/repid/_runner.py index 769bb738..e10e54b2 100644 --- a/repid/_runner.py +++ b/repid/_runner.py @@ -151,7 +151,7 @@ async def _actor_run( try: result = await actor.middleware_pipeline(leaf, message, actor) - except Exception as exc: # noqa: BLE001 + except Exception as exc: exception = exc logger.debug("actor.run.error", extra=logger_extra, exc_info=exc) else: diff --git a/repid/router.py b/repid/router.py index 2a59c79c..eb2ad6d8 100644 --- a/repid/router.py +++ b/repid/router.py @@ -93,9 +93,9 @@ class _RouterDefaults: channel: Channel | str | _NotSet middlewares: tuple[ActorMiddlewareT, ...] timeout: float | _NotSet - keep_alive: bool | float | None | _NotSet + keep_alive: bool | float | _NotSet | None run_in_process: bool | _NotSet - pool_executor: Executor | None | _NotSet + pool_executor: Executor | _NotSet | None converter: type[ConverterT] | _NotSet @classmethod