From 20d288b9ea8c635ec767a5f94445415985fe311a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:48:21 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.5.0) - [github.com/psf/black: 22.3.0 → 23.11.0](https://github.com/psf/black/compare/22.3.0...23.11.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.0](https://github.com/PyCQA/isort/compare/5.12.0...5.13.0) - [github.com/asottile/pyupgrade: v2.32.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v2.32.0...v3.15.0) - [github.com/PyCQA/doc8: 0.11.1 → v1.1.1](https://github.com/PyCQA/doc8/compare/0.11.1...v1.1.1) - [github.com/john-hen/Flake8-pyproject: 1.1.0.post0 → 1.2.3](https://github.com/john-hen/Flake8-pyproject/compare/1.1.0.post0...1.2.3) * [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 | 12 ++++++------ pycrdt_websocket/yroom.py | 1 - pycrdt_websocket/ystore.py | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 986e95e..1502824 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.5.0 hooks: - id: end-of-file-fixer - id: check-case-conflict @@ -17,26 +17,26 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.11.0 hooks: - id: black args: ["--line-length", "100"] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.0 hooks: - id: isort files: \.py$ args: [--profile=black] - repo: https://github.com/asottile/pyupgrade - rev: v2.32.0 + rev: v3.15.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/PyCQA/doc8 - rev: 0.11.1 + rev: v1.1.1 hooks: - id: doc8 args: [--max-line-length=200] @@ -44,7 +44,7 @@ repos: stages: [manual] - repo: https://github.com/john-hen/Flake8-pyproject - rev: 1.1.0.post0 + rev: 1.2.3 hooks: - id: Flake8-pyproject alias: flake8 diff --git a/pycrdt_websocket/yroom.py b/pycrdt_websocket/yroom.py index 25c2683..4818a23 100644 --- a/pycrdt_websocket/yroom.py +++ b/pycrdt_websocket/yroom.py @@ -29,7 +29,6 @@ class YRoom: - clients: list ydoc: Doc ystore: BaseYStore | None diff --git a/pycrdt_websocket/ystore.py b/pycrdt_websocket/ystore.py index dc126ca..aa91c38 100644 --- a/pycrdt_websocket/ystore.py +++ b/pycrdt_websocket/ystore.py @@ -24,7 +24,6 @@ class YDocNotFound(Exception): class BaseYStore(ABC): - metadata_callback: Callable[[], Awaitable[bytes] | bytes] | None = None version = 2 _started: Event | None = None