From 9a11beb30d2eeb4f6b927d1d178cb088b1d3126d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 06:50:57 +0000 Subject: [PATCH 1/2] chore(deps): update pre-commit hook psf/black-pre-commit-mirror to v24 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3f371e..160828a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: pyupgrade - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.12.1 + rev: 24.1.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs From f05a938f00fc03fae4ee7fc0384965786d2871f0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 06:51:10 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_rpc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_rpc.py b/tests/test_rpc.py index c17624b..3a64acf 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -69,11 +69,9 @@ def test_register() -> None: server = Server('', MagicMock()) @server.register('hello') - def world() -> None: - ... + def world() -> None: ... @server.register - def help() -> None: - ... + def help() -> None: ... assert set(server._methods) == {'hello', 'help'}