Skip to content

Commit e0a4f0c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 06ac1d3 commit e0a4f0c

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

nbviewer/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def nrfoot():
8282

8383

8484
class NBViewer(Application):
85-
8685
name = Unicode("NBViewer")
8786

8887
aliases = Dict( # type: ignore
@@ -713,7 +712,6 @@ def init_tornado_application(self):
713712
self.tornado_application = web.Application(handlers, **settings)
714713

715714
def init_logging(self):
716-
717715
# Note that we inherit a self.log attribute from traitlets.config.Application
718716
# https://github.com/ipython/traitlets/blob/master/traitlets/config/application.py#L209
719717
# as well as a log_level attribute

nbviewer/providers/gist/handlers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class GistClientMixin(GithubClientMixin):
20-
2120
# PROVIDER_CTX is a dictionary whose entries are passed as keyword arguments
2221
# to the render_template method of the GistHandler. The following describe
2322
# the information contained in each of these keyword arguments:
@@ -116,7 +115,6 @@ class GistHandler(GistClientMixin, RenderingHandler):
116115
"""render a gist notebook, or list files if a multifile gist"""
117116

118117
async def parse_gist(self, user, gist_id, filename=""):
119-
120118
with self.catch_client_error():
121119
response = await self.github_client.get_gist(gist_id)
122120

nbviewer/providers/github/handlers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828
class GithubClientMixin:
29-
3029
# PROVIDER_CTX is a dictionary whose entries are passed as keyword arguments
3130
# to the render_template method of the GistHandler. The following describe
3231
# the information contained in each of these keyword arguments:

nbviewer/tests/test_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from subprocess import Popen
55
from tempfile import NamedTemporaryFile
66

7+
78
# Also copied mostly from JupyterHub since again -- if not broken, don't fix.
89
def test_generate_config():
910
with NamedTemporaryFile(prefix="nbviewer_config", suffix=".py") as tf:

nbviewer/tests/test_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ def get_server_cmd(cls):
2020

2121

2222
class TemplatePathEnvTestCase(NBViewerTestCase, CustomTemplateStub):
23-
2423
environment_variables = {"NBVIEWER_TEMPLATE_PATH": tmpl_fixture}

0 commit comments

Comments
 (0)