mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-06-27 16:10:24 +08:00
Make isort happy
This commit is contained in:
@@ -6,6 +6,7 @@ import os
|
|||||||
from notebook.services.config import ConfigManager
|
from notebook.services.config import ConfigManager
|
||||||
|
|
||||||
from jupyter_contrib_nbextensions import __file__ as contrib_init
|
from jupyter_contrib_nbextensions import __file__ as contrib_init
|
||||||
|
|
||||||
from .exporter_inliner import ExporterInliner
|
from .exporter_inliner import ExporterInliner
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
"""Embed graphics into HTML Exporter class"""
|
"""Embed graphics into HTML Exporter class"""
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import re
|
|
||||||
from nbconvert.exporters.html import HTMLExporter
|
|
||||||
from ipython_genutils.ipstruct import Struct
|
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
|
|
||||||
|
from ipython_genutils.ipstruct import Struct
|
||||||
|
from nbconvert.exporters.html import HTMLExporter
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from urllib.request import urlopen # py3
|
from urllib.request import urlopen # py3
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
from nbconvert.exporters.html import HTMLExporter
|
from nbconvert.exporters.html import HTMLExporter
|
||||||
from traitlets.config import Config
|
from traitlets.config import Config
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Classes
|
# Classes
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
from nbconvert.tests.base import TestsBase
|
from nbconvert.tests.base import TestsBase
|
||||||
from nbformat import v4, write
|
from nbformat import v4, write
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ deps =
|
|||||||
flake8
|
flake8
|
||||||
isort
|
isort
|
||||||
commands =
|
commands =
|
||||||
flake8 src tests setup.py
|
flake8 --max-line-length=120 src tests setup.py
|
||||||
isort --verbose --check-only --diff --recursive src tests setup.py
|
isort --verbose --check-only --diff --recursive src tests setup.py
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
|||||||
Reference in New Issue
Block a user