Skip to content

Commit 35ccff9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fc19d18 commit 35ccff9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

jupyter_server_proxy/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""
22
Traitlets based configuration for jupyter_server_proxy
33
"""
4+
import sys
45
from collections import namedtuple
56
from warnings import warn
67

7-
import sys
8-
98
if sys.version_info < (3, 10): # pragma: no cover
109
from importlib_metadata import entry_points
1110
else: # pragma: no cover

tests/conftest.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
"""Reusable test fixtures for ``jupyter_server_proxy``."""
2+
import os
3+
import shutil
24
import socket
35
import sys
4-
import os
5-
from pytest import fixture
6-
from subprocess import Popen
7-
from typing import Generator, Any, Tuple
6+
import time
87
from pathlib import Path
9-
from uuid import uuid4
8+
from subprocess import Popen
9+
from typing import Any, Generator, Tuple
1010
from urllib.error import URLError
11-
import time
1211
from urllib.request import urlopen
13-
import shutil
12+
from uuid import uuid4
13+
14+
from pytest import fixture
1415

1516
HERE = Path(__file__).parent
1617
RESOURCES = HERE / "resources"
1718

19+
1820
@fixture
1921
def a_token() -> str:
2022
"""Get a random UUID to use for a token."""

tests/resources/jupyter_server_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pathlib import Path
21
import sys
2+
from pathlib import Path
33

44
HERE = Path(__file__).parent.resolve()
55

tests/test_proxies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import asyncio
22
import gzip
3-
from typing import Tuple
43
import json
5-
import os
64
from http.client import HTTPConnection
75
from io import BytesIO
6+
from typing import Tuple
87
from urllib.parse import quote
98

109
import pytest

0 commit comments

Comments
 (0)