Skip to content

Commit d460d52

Browse files
committed
resort imports
1 parent b27bbf0 commit d460d52

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

nbformat/tests/test_validator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
import os
77
import re
8-
9-
from nbformat.warnings import MissingIDFieldWarning
108
from copy import deepcopy
119

12-
from .base import TestsBase
10+
import pytest
1311
from jsonschema import ValidationError
12+
1413
from nbformat import read
15-
from ..validator import isvalid, validate, iter_validate
16-
from ..json_compat import VALIDATORS
14+
from nbformat.warnings import MissingIDFieldWarning
1715

18-
import pytest
16+
from ..json_compat import VALIDATORS
17+
from ..validator import isvalid, iter_validate, validate
18+
from .base import TestsBase
1919

2020
nb4 = ("test4.ipynb", "test4.5.ipynb")
2121

nbformat/validator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Distributed under the terms of the Modified BSD License.
33

44
from __future__ import print_function
5+
56
import json
67
import os
78
import pprint
@@ -10,9 +11,10 @@
1011
from copy import deepcopy
1112

1213
from ipython_genutils.importstring import import_item
13-
from .json_compat import get_current_validator, ValidationError
14-
from .reader import get_version, reads
14+
1515
from .corpus.words import generate_corpus_id
16+
from .json_compat import ValidationError, get_current_validator
17+
from .reader import get_version, reads
1618
from .warnings import MissingIDFieldWarning
1719

1820
validators = {}

0 commit comments

Comments
 (0)