pre-commit: run black with string normalization

This commit is contained in:
Erik Sundell
2021-11-03 23:55:34 +01:00
parent 2ba942ba76
commit e0aaa4f995
31 changed files with 700 additions and 692 deletions

View File

@@ -7,49 +7,49 @@ from tljh.hooks import hookimpl
@hookimpl
def tljh_extra_user_conda_packages():
return [
'hypothesis',
"hypothesis",
]
@hookimpl
def tljh_extra_user_pip_packages():
return [
'django',
"django",
]
@hookimpl
def tljh_extra_hub_pip_packages():
return [
'there',
"there",
]
@hookimpl
def tljh_extra_apt_packages():
return [
'sl',
"sl",
]
@hookimpl
def tljh_config_post_install(config):
# Put an arbitrary marker we can test for
config['simplest_plugin'] = {'present': True}
config["simplest_plugin"] = {"present": True}
@hookimpl
def tljh_custom_jupyterhub_config(c):
c.JupyterHub.authenticator_class = 'tmpauthenticator.TmpAuthenticator'
c.JupyterHub.authenticator_class = "tmpauthenticator.TmpAuthenticator"
@hookimpl
def tljh_post_install():
with open('test_post_install', 'w') as f:
f.write('123456789')
with open("test_post_install", "w") as f:
f.write("123456789")
@hookimpl
def tljh_new_user_create(username):
with open('test_new_user_create', 'w') as f:
with open("test_new_user_create", "w") as f:
f.write(username)