Skip to content

Commit a7cd9da

Browse files
authored
Merge pull request #514 from jupyterhub/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 9f8f483 + fefb77d commit a7cd9da

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
repos:
1212
# Autoformat: Python code, syntax patterns are modernized
1313
- repo: https://github.com/asottile/pyupgrade
14-
rev: v3.19.0
14+
rev: v3.20.0
1515
hooks:
1616
- id: pyupgrade
1717
args:
@@ -28,13 +28,13 @@ repos:
2828

2929
# Autoformat: Python code
3030
- repo: https://github.com/pycqa/isort
31-
rev: 5.13.2
31+
rev: 6.0.1
3232
hooks:
3333
- id: isort
3434

3535
# Autoformat: Python code
3636
- repo: https://github.com/psf/black
37-
rev: 24.10.0
37+
rev: 25.1.0
3838
hooks:
3939
- id: black
4040
exclude: "contrib\/template\/.*"
@@ -65,7 +65,7 @@ repos:
6565

6666
# Lint: Python code
6767
- repo: https://github.com/PyCQA/flake8
68-
rev: "7.1.1"
68+
rev: "7.3.0"
6969
hooks:
7070
- id: flake8
7171

docs/source/server-process.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ One of:
2323

2424
- A list of strings that is the command used to start the
2525
process. The following template strings will be replaced:
26-
2726
- `{port}` the port that the process should listen on. This will be 0 if it
2827
should use a Unix socket instead.
2928
- `{unix_socket}` the path at which the process should listen on a Unix

labextension/yarn.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,11 +4453,10 @@ __metadata:
44534453

44544454
"typescript@patch:typescript@~5.2.2#~builtin<compat/typescript>":
44554455
version: 5.2.2
4456-
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441"
4456+
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=85af82"
44574457
bin:
44584458
tsc: bin/tsc
44594459
tsserver: bin/tsserver
4460-
checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca
44614460
languageName: node
44624461
linkType: hard
44634462

tests/test_proxies.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_chained_rewrite_response(a_server_port_and_token: Tuple[int, str]) -> N
146146

147147

148148
def test_cats_and_dogs_rewrite_response(
149-
a_server_port_and_token: Tuple[int, str]
149+
a_server_port_and_token: Tuple[int, str],
150150
) -> None:
151151
PORT, TOKEN = a_server_port_and_token
152152
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]) -
197197

198198

199199
def test_server_proxy_on_requested_port_no_command(
200-
a_server_port_and_token: Tuple[int, str]
200+
a_server_port_and_token: Tuple[int, str],
201201
) -> None:
202202
PORT, TOKEN = a_server_port_and_token
203203
r = request_get(PORT, "/python-proxyto54321-no-command/ghi", TOKEN)
@@ -212,7 +212,7 @@ def test_server_proxy_on_requested_port_no_command(
212212

213213

214214
def test_server_proxy_port_non_absolute(
215-
a_server_port_and_token: Tuple[int, str]
215+
a_server_port_and_token: Tuple[int, str],
216216
) -> None:
217217
PORT, TOKEN = a_server_port_and_token
218218
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]) ->
234234

235235

236236
def test_server_proxy_host_non_absolute(
237-
a_server_port_and_token: Tuple[int, str]
237+
a_server_port_and_token: Tuple[int, str],
238238
) -> None:
239239
PORT, TOKEN = a_server_port_and_token
240240
# note: localhost: is stripped but 127.0.0.1: is not
@@ -268,7 +268,7 @@ def test_server_proxy_host_invalid(
268268

269269

270270
def test_server_proxy_port_non_service_rewrite_response(
271-
a_server_port_and_token: Tuple[int, str]
271+
a_server_port_and_token: Tuple[int, str],
272272
) -> None:
273273
PORT, TOKEN = a_server_port_and_token
274274

@@ -334,7 +334,7 @@ def test_server_request_headers(a_server_port_and_token: Tuple[int, str]) -> Non
334334

335335

336336
def test_server_content_encoding_header(
337-
a_server_port_and_token: Tuple[int, str]
337+
a_server_port_and_token: Tuple[int, str],
338338
) -> None:
339339
PORT, TOKEN = a_server_port_and_token
340340
r = request_get(PORT, "/python-gzipserver/", TOKEN, host="127.0.0.1")
@@ -359,7 +359,7 @@ async def test_eventstream(a_server_port_and_token: Tuple[int, str]) -> None:
359359
stream_data = []
360360

361361
def streaming_cb(data):
362-
nonlocal times_called, last_cb_time, stream_read_intervals
362+
nonlocal times_called, last_cb_time
363363
time_taken = time.perf_counter() - last_cb_time
364364
last_cb_time = time.perf_counter()
365365
stream_read_intervals.append(time_taken)
@@ -379,7 +379,7 @@ def streaming_cb(data):
379379

380380

381381
async def test_server_proxy_websocket_messages(
382-
a_server_port_and_token: Tuple[int, str]
382+
a_server_port_and_token: Tuple[int, str],
383383
) -> None:
384384
PORT, TOKEN = a_server_port_and_token
385385
url = f"ws://{LOCALHOST}:{PORT}/python-websocket/echosocket?token={TOKEN}"
@@ -465,7 +465,7 @@ async def test_server_proxy_websocket_subprotocols(
465465

466466

467467
async def test_websocket_no_auth_failure(
468-
a_server_port_and_token: Tuple[int, str]
468+
a_server_port_and_token: Tuple[int, str],
469469
) -> None:
470470
PORT = a_server_port_and_token[0]
471471
# Intentionally do not pass an appropriate token, which should cause a 403
@@ -499,7 +499,7 @@ def test_bad_server_proxy_url(
499499

500500

501501
def test_callable_environment_formatting(
502-
a_server_port_and_token: Tuple[int, str]
502+
a_server_port_and_token: Tuple[int, str],
503503
) -> None:
504504
PORT, TOKEN = a_server_port_and_token
505505
r = request_get(PORT, "/python-http-callable-env/test", TOKEN)

0 commit comments

Comments
 (0)