Skip to content

Commit f922e2e

Browse files
committed
format using black
1 parent d632dee commit f922e2e

19 files changed

+679
-462
lines changed

jupyterlab_git/__init__.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from jupyterlab_git.handlers import setup_handlers
99
from jupyterlab_git.git import Git
1010

11+
1112
class JupyterLabGit(Configurable):
1213
"""
1314
Config options for jupyterlab_git
@@ -16,26 +17,24 @@ class JupyterLabGit(Configurable):
1617
"""
1718

1819
actions = Dict(
19-
help='Actions to be taken after a git command. Each action takes a list of commands to execute (strings). Supported actions: post_init',
20+
help="Actions to be taken after a git command. Each action takes a list of commands to execute (strings). Supported actions: post_init",
2021
config=True,
2122
trait=List(
22-
trait=Unicode(),
23-
help='List of commands to run. E.g. ["touch baz.py"]'
23+
trait=Unicode(), help='List of commands to run. E.g. ["touch baz.py"]'
2424
)
2525
# TODO Validate
2626
)
2727

28+
2829
def _jupyter_server_extension_paths():
29-
"""Declare the Jupyter server extension paths.
30-
"""
30+
"""Declare the Jupyter server extension paths."""
3131
return [{"module": "jupyterlab_git"}]
3232

3333

3434
def load_jupyter_server_extension(nbapp):
35-
"""Load the Jupyter server extension.
36-
"""
35+
"""Load the Jupyter server extension."""
3736

3837
config = JupyterLabGit(config=nbapp.config)
39-
git = Git(nbapp.web_app.settings['contents_manager'], config)
38+
git = Git(nbapp.web_app.settings["contents_manager"], config)
4039
nbapp.web_app.settings["git"] = git
4140
setup_handlers(nbapp.web_app)

jupyterlab_git/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Distributed under the terms of the Modified BSD License.
33

44
version_info = (0, 21, 1)
5-
flag = ''
5+
flag = ""
66

77
__version__ = ".".join(map(str, version_info)) + flag

0 commit comments

Comments
 (0)