Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 4, 2023
1 parent 06ac1d3 commit e0a4f0c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions nbviewer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def nrfoot():


class NBViewer(Application):

name = Unicode("NBViewer")

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

def init_logging(self):

# Note that we inherit a self.log attribute from traitlets.config.Application
# https://github.com/ipython/traitlets/blob/master/traitlets/config/application.py#L209
# as well as a log_level attribute
Expand Down
2 changes: 0 additions & 2 deletions nbviewer/providers/gist/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


class GistClientMixin(GithubClientMixin):

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

async def parse_gist(self, user, gist_id, filename=""):

with self.catch_client_error():
response = await self.github_client.get_gist(gist_id)

Expand Down
1 change: 0 additions & 1 deletion nbviewer/providers/github/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@


class GithubClientMixin:

# PROVIDER_CTX is a dictionary whose entries are passed as keyword arguments
# to the render_template method of the GistHandler. The following describe
# the information contained in each of these keyword arguments:
Expand Down
1 change: 1 addition & 0 deletions nbviewer/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from subprocess import Popen
from tempfile import NamedTemporaryFile


# Also copied mostly from JupyterHub since again -- if not broken, don't fix.
def test_generate_config():
with NamedTemporaryFile(prefix="nbviewer_config", suffix=".py") as tf:
Expand Down
1 change: 0 additions & 1 deletion nbviewer/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ def get_server_cmd(cls):


class TemplatePathEnvTestCase(NBViewerTestCase, CustomTemplateStub):

environment_variables = {"NBVIEWER_TEMPLATE_PATH": tmpl_fixture}

0 comments on commit e0a4f0c

Please sign in to comment.