Skip to content

Commit bedbc93

Browse files
committed
please linter
1 parent f08008d commit bedbc93

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ repos:
44
hooks:
55
- id: reorder-python-imports
66
- repo: https://github.com/psf/black
7-
rev: "22.1.0"
7+
rev: "22.10.0"
88
hooks:
99
- id: black
1010
- repo: https://github.com/PyCQA/flake8
11-
rev: "4.0.1"
11+
rev: "5.0.4"
1212
hooks:
1313
- id: flake8
1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.1.0
15+
rev: v4.3.0
1616
hooks:
1717
- id: end-of-file-fixer
1818
- id: check-json

nbviewer/app.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
import os
1111
from concurrent.futures import ProcessPoolExecutor
1212
from concurrent.futures import ThreadPoolExecutor
13+
from functools import cached_property
1314
from html import escape
1415
from urllib.parse import urlparse
1516

1617
import markdown
1718
from jinja2 import Environment
1819
from jinja2 import FileSystemLoader
20+
from jupyter_server.base.handlers import FileFindHandler as StaticFileHandler # type: ignore
1921
from nbconvert import get_exporter # type: ignore
2022
from nbconvert.exporters.templateexporter import ExtensionTolerantLoader # type: ignore
2123
from tornado import httpserver
@@ -51,10 +53,6 @@
5153
from .utils import jupyter_info
5254
from .utils import url_path_join
5355

54-
from functools import cached_property
55-
56-
from jupyter_server.base.handlers import FileFindHandler as StaticFileHandler # type: ignore
57-
5856
# -----------------------------------------------------------------------------
5957
# Code
6058
# -----------------------------------------------------------------------------

nbviewer/tests/test_security.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import os
99
from unittest.mock import patch
1010

11+
import pytest
1112
import requests
1213

1314
from ..providers.local.tests.test_localfile import (
@@ -16,8 +17,6 @@
1617
from .base import NBViewerTestCase
1718
from .base import skip_unless_github_auth
1819

19-
import pytest
20-
2120

2221
class XSSTestCase(NBViewerTestCase):
2322
def _xss(self, path, pattern="<script>alert"):

0 commit comments

Comments
 (0)