diff --git a/bundled/tool/lsp_jsonrpc.py b/bundled/tool/lsp_jsonrpc.py index 8255206..c850253 100644 --- a/bundled/tool/lsp_jsonrpc.py +++ b/bundled/tool/lsp_jsonrpc.py @@ -2,7 +2,6 @@ # Licensed under the MIT License. """Light-weight JSON-RPC over standard IO.""" - import atexit import contextlib import io diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index d7f9ba2..aecdee7 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -1,6 +1,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Implementation of tool support over LSP.""" + from __future__ import annotations import copy diff --git a/bundled/tool/lsp_utils.py b/bundled/tool/lsp_utils.py index fb5f032..0179fff 100644 --- a/bundled/tool/lsp_utils.py +++ b/bundled/tool/lsp_utils.py @@ -1,6 +1,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Utility functions and classes for use with running tools over LSP.""" + from __future__ import annotations import contextlib diff --git a/requirements.txt b/requirements.txt index 925cb85..c1e7bc3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,9 +12,9 @@ attrs==25.4.0 \ # jschema-to-python # lsprotocol # sarif-om -bandit[sarif]==1.9.2 \ - --hash=sha256:32410415cd93bf9c8b91972159d5cf1e7f063a9146d70345641cd3877de348ce \ - --hash=sha256:bda8d68610fc33a6e10b7a8f1d61d92c8f6c004051d5e946406be1fb1b16a868 +bandit[sarif]==1.9.3 \ + --hash=sha256:4745917c88d2246def79748bde5e08b9d5e9b92f877863d43fab70cd8814ce6a \ + --hash=sha256:ade4b9b7786f89ef6fc7344a52b34558caec5da74cb90373aed01de88472f774 # via -r requirements.in cattrs==25.3.0 \ --hash=sha256:1ac88d9e5eda10436c4517e390a4142d88638fe682c436c93db7ce4a277b884a \ diff --git a/src/test/python_tests/lsp_test_client/constants.py b/src/test/python_tests/lsp_test_client/constants.py index 882df6e..8f33e13 100644 --- a/src/test/python_tests/lsp_test_client/constants.py +++ b/src/test/python_tests/lsp_test_client/constants.py @@ -3,6 +3,7 @@ """ Constants for use with tests. """ + import pathlib TEST_ROOT = pathlib.Path(__file__).parent.parent diff --git a/src/test/python_tests/lsp_test_client/utils.py b/src/test/python_tests/lsp_test_client/utils.py index df92fe4..c65d849 100644 --- a/src/test/python_tests/lsp_test_client/utils.py +++ b/src/test/python_tests/lsp_test_client/utils.py @@ -3,6 +3,7 @@ """ Utility functions for use with tests. """ + import json import os import pathlib diff --git a/src/test/python_tests/test_server.py b/src/test/python_tests/test_server.py index edc331d..1443a0d 100644 --- a/src/test/python_tests/test_server.py +++ b/src/test/python_tests/test_server.py @@ -59,7 +59,7 @@ def _handler(params): "severity": 1, "code": "B324:hashlib", "codeDescription": { - "href": "https://bandit.readthedocs.io/en/1.9.2/plugins/b324_hashlib.html" + "href": "https://bandit.readthedocs.io/en/1.9.3/plugins/b324_hashlib.html" }, "source": SERVER_INFO["name"], },