diff --git a/.github/integration-test.py b/.github/integration-test.py index 67b8a9d..cf027fc 100755 --- a/.github/integration-test.py +++ b/.github/integration-test.py @@ -104,7 +104,7 @@ def run_test(image_name, test_name, bootstrap_pip_spec, test_files, upgrade, ins if upgrade: run_container_command( test_name, - f'curl -L https://tljh.jupyter.org/bootstrap.py | python3 -' + 'curl -L https://tljh.jupyter.org/bootstrap.py | python3 -' ) run_container_command( diff --git a/integration-tests/test_admin_installer.py b/integration-tests/test_admin_installer.py index 1f6f38a..1bda5d4 100644 --- a/integration-tests/test_admin_installer.py +++ b/integration-tests/test_admin_installer.py @@ -2,7 +2,6 @@ from hubtraf.user import User from hubtraf.auth.dummy import login_dummy import pytest from functools import partial -import asyncio @pytest.mark.asyncio diff --git a/integration-tests/test_extensions.py b/integration-tests/test_extensions.py index 9e08a8e..973f784 100644 --- a/integration-tests/test_extensions.py +++ b/integration-tests/test_extensions.py @@ -1,4 +1,3 @@ -import os import subprocess diff --git a/integration-tests/test_hub.py b/integration-tests/test_hub.py index 687d4a9..5e98d1a 100644 --- a/integration-tests/test_hub.py +++ b/integration-tests/test_hub.py @@ -8,7 +8,6 @@ from functools import partial import asyncio import pwd import grp -import sys import subprocess from os import system from tljh.normalize import generate_system_username diff --git a/integration-tests/test_proxy.py b/integration-tests/test_proxy.py index be91d78..63e4841 100644 --- a/integration-tests/test_proxy.py +++ b/integration-tests/test_proxy.py @@ -12,7 +12,6 @@ import pytest from tljh.config import ( reload_component, set_config_value, - unset_config_value, CONFIG_FILE, CONFIG_DIR, STATE_DIR, diff --git a/integration-tests/test_simplest_plugin.py b/integration-tests/test_simplest_plugin.py index 0b7afd3..e61bbcc 100644 --- a/integration-tests/test_simplest_plugin.py +++ b/integration-tests/test_simplest_plugin.py @@ -84,7 +84,7 @@ def test_new_user_create(): # Call ensure_user to make sure the user plugin gets called user.ensure_user(username) - with open(f"test_new_user_create") as f: + with open("test_new_user_create") as f: content = f.read() assert content == username diff --git a/tests/test_configurer.py b/tests/test_configurer.py index 98fe60d..8865687 100644 --- a/tests/test_configurer.py +++ b/tests/test_configurer.py @@ -2,7 +2,6 @@ Test configurer """ -from traitlets import Dict from traitlets.config import Config import os import sys diff --git a/tests/test_traefik.py b/tests/test_traefik.py index d22f68d..e858e07 100644 --- a/tests/test_traefik.py +++ b/tests/test_traefik.py @@ -1,6 +1,5 @@ """Test traefik configuration""" import os -from unittest import mock import toml import pytest diff --git a/tljh/config.py b/tljh/config.py index 24882ad..0609c4f 100644 --- a/tljh/config.py +++ b/tljh/config.py @@ -13,7 +13,6 @@ tljh-config show firstlevel.second_level """ import argparse -import asyncio from collections.abc import Sequence, Mapping from copy import deepcopy import os diff --git a/tljh/installer.py b/tljh/installer.py index 40f3fab..ad306da 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -16,7 +16,6 @@ import bcrypt import pluggy import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning -from getpass import getpass from tljh import ( apt, @@ -26,7 +25,6 @@ from tljh import ( systemd, traefik, user, - utils ) from .config import ( CONFIG_DIR, diff --git a/tljh/jupyterhub_config.py b/tljh/jupyterhub_config.py index cdda3d9..c5d679c 100644 --- a/tljh/jupyterhub_config.py +++ b/tljh/jupyterhub_config.py @@ -5,7 +5,6 @@ JupyterHub config for the littlest jupyterhub. from glob import glob import os -from systemdspawner import SystemdSpawner from tljh import configurer from tljh.config import INSTALL_PREFIX, USER_ENV_PREFIX, CONFIG_DIR from tljh.utils import get_plugin_manager