From a2d5a631caa3e8223818b55ff0549566b0424141 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 20:44:11 +0000 Subject: [PATCH 1/6] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.19.0 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v3.19.0...v3.20.0) - [github.com/pycqa/isort: 5.13.2 → 6.0.1](https://github.com/pycqa/isort/compare/5.13.2...6.0.1) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/PyCQA/flake8: 7.1.1 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.1.1...7.3.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 72809fc1..d7b77415 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: # Autoformat: Python code, syntax patterns are modernized - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.20.0 hooks: - id: pyupgrade args: @@ -28,13 +28,13 @@ repos: # Autoformat: Python code - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort # Autoformat: Python code - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black exclude: "contrib\/template\/.*" @@ -65,7 +65,7 @@ repos: # Lint: Python code - repo: https://github.com/PyCQA/flake8 - rev: "7.1.1" + rev: "7.3.0" hooks: - id: flake8 From 53ffbb24b1f45f464a8e61470db583aa985d754c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 20:48:47 +0000 Subject: [PATCH 2/6] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_proxies.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_proxies.py b/tests/test_proxies.py index 4573517c..f6332a36 100644 --- a/tests/test_proxies.py +++ b/tests/test_proxies.py @@ -146,7 +146,7 @@ def test_chained_rewrite_response(a_server_port_and_token: Tuple[int, str]) -> N def test_cats_and_dogs_rewrite_response( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token r = request_get(PORT, "/python-cats-only-rewrite-response/goats", TOKEN) @@ -197,7 +197,7 @@ def test_server_proxy_requested_port(a_server_port_and_token: Tuple[int, str]) - def test_server_proxy_on_requested_port_no_command( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token r = request_get(PORT, "/python-proxyto54321-no-command/ghi", TOKEN) @@ -212,7 +212,7 @@ def test_server_proxy_on_requested_port_no_command( def test_server_proxy_port_non_absolute( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token r = request_get(PORT, "/proxy/54321/jkl", TOKEN) @@ -234,7 +234,7 @@ def test_server_proxy_port_absolute(a_server_port_and_token: Tuple[int, str]) -> def test_server_proxy_host_non_absolute( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token # note: localhost: is stripped but 127.0.0.1: is not @@ -268,7 +268,7 @@ def test_server_proxy_host_invalid( def test_server_proxy_port_non_service_rewrite_response( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token @@ -334,7 +334,7 @@ def test_server_request_headers(a_server_port_and_token: Tuple[int, str]) -> Non def test_server_content_encoding_header( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token r = request_get(PORT, "/python-gzipserver/", TOKEN, host="127.0.0.1") @@ -379,7 +379,7 @@ def streaming_cb(data): async def test_server_proxy_websocket_messages( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token url = f"ws://{LOCALHOST}:{PORT}/python-websocket/echosocket?token={TOKEN}" @@ -465,7 +465,7 @@ async def test_server_proxy_websocket_subprotocols( async def test_websocket_no_auth_failure( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT = a_server_port_and_token[0] # Intentionally do not pass an appropriate token, which should cause a 403 @@ -499,7 +499,7 @@ def test_bad_server_proxy_url( def test_callable_environment_formatting( - a_server_port_and_token: Tuple[int, str] + a_server_port_and_token: Tuple[int, str], ) -> None: PORT, TOKEN = a_server_port_and_token r = request_get(PORT, "/python-http-callable-env/test", TOKEN) From 8913804b96514647d97ad5682094d8ff557c50e8 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 18 Aug 2025 19:40:47 -0700 Subject: [PATCH 3/6] Fix unused nonlocal flake8 caught this well - you only need nonlocal when *assigning* them, not when accessing methods on them as we are here. Even when the method is mutating --- tests/test_proxies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_proxies.py b/tests/test_proxies.py index f6332a36..45f6418f 100644 --- a/tests/test_proxies.py +++ b/tests/test_proxies.py @@ -359,7 +359,7 @@ async def test_eventstream(a_server_port_and_token: Tuple[int, str]) -> None: stream_data = [] def streaming_cb(data): - nonlocal times_called, last_cb_time, stream_read_intervals + nonlocal times_called, last_cb_time time_taken = time.perf_counter() - last_cb_time last_cb_time = time.perf_counter() stream_read_intervals.append(time_taken) From 40ca2202e0d8906a30bec140dc0a16c955ef1f07 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 19 Aug 2025 10:06:42 -0700 Subject: [PATCH 4/6] Manually change typescript hash? Per https://jupyter.zulipchat.com/#narrow/channel/469762-jupyterlab/topic/Help.20with.20failing.20CI.20on.20a.20jupyterlab.20extension.3F --- labextension/yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labextension/yarn.lock b/labextension/yarn.lock index 3b4ed78b..ccf4f9cc 100644 --- a/labextension/yarn.lock +++ b/labextension/yarn.lock @@ -4453,7 +4453,7 @@ __metadata: "typescript@patch:typescript@~5.2.2#~builtin": version: 5.2.2 - resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441" + resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=85af82" bin: tsc: bin/tsc tsserver: bin/tsserver From 1d637936c8b2eb71bfaf8fac5eb70daac721be82 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 17:07:10 +0000 Subject: [PATCH 5/6] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/source/server-process.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/source/server-process.md b/docs/source/server-process.md index 1f59f335..8ea00e87 100644 --- a/docs/source/server-process.md +++ b/docs/source/server-process.md @@ -23,7 +23,6 @@ One of: - A list of strings that is the command used to start the process. The following template strings will be replaced: - - `{port}` the port that the process should listen on. This will be 0 if it should use a Unix socket instead. - `{unix_socket}` the path at which the process should listen on a Unix From fefb77ddde42bb4ed629a17a824acd7e3cf265c4 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 19 Aug 2025 10:08:27 -0700 Subject: [PATCH 6/6] Remove typescript checksum Let's see if this generates another one --- labextension/yarn.lock | 1 - 1 file changed, 1 deletion(-) diff --git a/labextension/yarn.lock b/labextension/yarn.lock index ccf4f9cc..f40ae054 100644 --- a/labextension/yarn.lock +++ b/labextension/yarn.lock @@ -4457,7 +4457,6 @@ __metadata: bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca languageName: node linkType: hard