From b245a17756ebe60b241f9490b8e793caa7ec9868 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:54:13 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .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 505ceac..837c51b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black From 74f4bc3af1e1a4a79821b4b6cc751d0bf750a953 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:54:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- lib/lsp-devtools/tests/servers/simple.py | 1 + lib/pytest-lsp/pytest_lsp/checks.py | 1 + lib/pytest-lsp/pytest_lsp/client.py | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/lsp-devtools/tests/servers/simple.py b/lib/lsp-devtools/tests/servers/simple.py index 2bb2816..6bda60d 100644 --- a/lib/lsp-devtools/tests/servers/simple.py +++ b/lib/lsp-devtools/tests/servers/simple.py @@ -1,4 +1,5 @@ """A very simple language server.""" + from lsprotocol import types from pygls.server import LanguageServer diff --git a/lib/pytest-lsp/pytest_lsp/checks.py b/lib/pytest-lsp/pytest_lsp/checks.py index 8ff291e..385e05c 100644 --- a/lib/pytest-lsp/pytest_lsp/checks.py +++ b/lib/pytest-lsp/pytest_lsp/checks.py @@ -8,6 +8,7 @@ details. """ + import logging import warnings from typing import Any diff --git a/lib/pytest-lsp/pytest_lsp/client.py b/lib/pytest-lsp/pytest_lsp/client.py index d32d643..24d0950 100644 --- a/lib/pytest-lsp/pytest_lsp/client.py +++ b/lib/pytest-lsp/pytest_lsp/client.py @@ -61,9 +61,9 @@ def __init__(self, *args, configuration: Optional[Dict[str, Any]] = None, **kwar self.diagnostics: Dict[str, List[types.Diagnostic]] = {} """Holds any recieved diagnostics.""" - self.progress_reports: Dict[ - types.ProgressToken, List[types.ProgressParams] - ] = {} + self.progress_reports: Dict[types.ProgressToken, List[types.ProgressParams]] = ( + {} + ) """Holds any received progress updates.""" self.error: Optional[Exception] = None