mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 01:54:09 +00:00
easier linting in jupyterhub_config
noqa get_import satisfies most linters
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Configuration file for jupyterhub-demo
|
||||
|
||||
c = get_config()
|
||||
c = get_config() # noqa
|
||||
|
||||
# Use DummyAuthenticator and SimpleSpawner
|
||||
c.JupyterHub.spawner_class = "simple"
|
||||
|
@@ -27,9 +27,9 @@ def clean_dir_hook(spawner):
|
||||
if os.path.exists(temp_path) and os.path.isdir(temp_path):
|
||||
shutil.rmtree(temp_path)
|
||||
|
||||
c = get_config() # noqa
|
||||
|
||||
# attach the hook functions to the spawner
|
||||
# pylint: disable=undefined-variable
|
||||
c.Spawner.pre_spawn_hook = create_dir_hook
|
||||
c.Spawner.post_stop_hook = clean_dir_hook
|
||||
|
||||
|
@@ -8,6 +8,7 @@ if not api_token:
|
||||
"Make sure to `export JUPYTERHUB_API_TOKEN=$(openssl rand -hex 32)`"
|
||||
)
|
||||
|
||||
c = get_config() # noqa
|
||||
# tell JupyterHub to register the service as an external oauth client
|
||||
c.JupyterHub.services = [
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
|
||||
c = get_config()
|
||||
c = get_config() # noqa
|
||||
|
||||
# To run the announcement service managed by the hub, add this.
|
||||
|
||||
|
@@ -19,6 +19,8 @@ else:
|
||||
service_name = "fastapi"
|
||||
oauth_redirect_uri = f"{public_host}/services/{service_name}/oauth_callback"
|
||||
|
||||
|
||||
c = get_config() # noqa
|
||||
c.JupyterHub.services = [
|
||||
{
|
||||
"name": service_name,
|
||||
|
@@ -1,3 +1,5 @@
|
||||
c = get_config() # noqa
|
||||
|
||||
# our user list
|
||||
c.Authenticator.allowed_users = ['minrk', 'ellisonbg', 'willingc']
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
c = get_config() # noqa
|
||||
|
||||
# our user list
|
||||
c.Authenticator.allowed_users = ['minrk', 'ellisonbg', 'willingc']
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
c = get_config() # noqa
|
||||
|
||||
c.JupyterHub.services = [
|
||||
{
|
||||
'name': 'whoami',
|
||||
|
@@ -1,5 +1,7 @@
|
||||
import sys
|
||||
|
||||
c = get_config() # noqa
|
||||
|
||||
c.JupyterHub.services = [
|
||||
{
|
||||
'name': 'whoami-api',
|
||||
|
@@ -6,6 +6,7 @@ import shlex
|
||||
|
||||
from jupyterhub.spawner import LocalProcessSpawner
|
||||
|
||||
c = get_config() # noqa
|
||||
|
||||
class DemoFormSpawner(LocalProcessSpawner):
|
||||
def _options_form_default(self):
|
||||
|
Reference in New Issue
Block a user