File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : reorder-python-imports
6
6
- repo : https://github.com/psf/black
7
- rev : " 22.1 .0"
7
+ rev : " 22.10 .0"
8
8
hooks :
9
9
- id : black
10
10
- repo : https://github.com/PyCQA/flake8
11
- rev : " 4 .0.1 "
11
+ rev : " 5 .0.4 "
12
12
hooks :
13
13
- id : flake8
14
14
- repo : https://github.com/pre-commit/pre-commit-hooks
15
- rev : v4.1 .0
15
+ rev : v4.3 .0
16
16
hooks :
17
17
- id : end-of-file-fixer
18
18
- id : check-json
Original file line number Diff line number Diff line change 10
10
import os
11
11
from concurrent .futures import ProcessPoolExecutor
12
12
from concurrent .futures import ThreadPoolExecutor
13
+ from functools import cached_property
13
14
from html import escape
14
15
from urllib .parse import urlparse
15
16
16
17
import markdown
17
18
from jinja2 import Environment
18
19
from jinja2 import FileSystemLoader
20
+ from jupyter_server .base .handlers import FileFindHandler as StaticFileHandler # type: ignore
19
21
from nbconvert import get_exporter # type: ignore
20
22
from nbconvert .exporters .templateexporter import ExtensionTolerantLoader # type: ignore
21
23
from tornado import httpserver
51
53
from .utils import jupyter_info
52
54
from .utils import url_path_join
53
55
54
- from functools import cached_property
55
-
56
- from jupyter_server .base .handlers import FileFindHandler as StaticFileHandler # type: ignore
57
-
58
56
# -----------------------------------------------------------------------------
59
57
# Code
60
58
# -----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 8
8
import os
9
9
from unittest .mock import patch
10
10
11
+ import pytest
11
12
import requests
12
13
13
14
from ..providers .local .tests .test_localfile import (
16
17
from .base import NBViewerTestCase
17
18
from .base import skip_unless_github_auth
18
19
19
- import pytest
20
-
21
20
22
21
class XSSTestCase (NBViewerTestCase ):
23
22
def _xss (self , path , pattern = "<script>alert" ):
You can’t perform that action at this time.
0 commit comments