Skip to content

Commit 2463d2b

Browse files
committed
Fix style issues
1 parent 5c6a542 commit 2463d2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
2-
ignore = F821
2+
ignore = F821, W503
33
exclude = venv,ldap_hooks/__init__.py,example/setup_ldap_entry_hook_config.py,example/setup_ldap_hook_test_config.py

tests/configs/jhub/ldap_object_spawner_hook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""A simple jupyter config file for testing the authenticator."""
22
from ldap_hooks import setup_ldap_entry_hook
3-
from ldap_hooks import LDAP, LDAP_SEARCH_ATTRIBUTE_QUERY, \
4-
SPAWNER_USER_ATTRIBUTE, LDAP_FIRST_SEARCH_ATTRIBUTE_QUERY
3+
from ldap_hooks import LDAP, SPAWNER_USER_ATTRIBUTE, \
4+
LDAP_FIRST_SEARCH_ATTRIBUTE_QUERY
55
c = get_config()
66

77
c.JupyterHub.ip = '0.0.0.0'

tests/test_ldap_hooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ def test_ldap_person_dynamic_attr_hook(build_image, network, containers):
324324
'ports': {8000: 8000},
325325
'network': LDAP_NETWORK_NAME,
326326
'detach': 'True',
327-
'command': 'jupyterhub --debug -f ' +
328-
jhub_obj_spw_target_config}
327+
'command': 'jupyterhub --debug -f '
328+
+ jhub_obj_spw_target_config}
329329

330330

331331
@pytest.mark.parametrize('build_image', [jhub_image_spec],
@@ -464,4 +464,4 @@ def test_dynamic_object_spawner_attributes(build_image, network, containers):
464464
client.containers.list()
465465
if "jupyter-" in jup_container.name]
466466
# double check it is gone
467-
assert len(post_jupyter_containers) == 0
467+
assert len(post_jupyter_containers) == 0

0 commit comments

Comments
 (0)