File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# The files() API was added in Python 3.9.
9
9
if sys .version_info >= (3 , 9 ): # pragma: no cover
10
- import importlib . resources as resources
10
+ from importlib import resources
11
11
else : # pragma: no cover
12
12
import importlib_resources as resources
13
13
Original file line number Diff line number Diff line change 13
13
from typing_extensions import Protocol , runtime_checkable
14
14
15
15
from jsonschema ._format import FormatChecker
16
-
17
- from ._types import TypeChecker
18
- from .exceptions import ValidationError
19
- from .validators import RefResolver
16
+ from jsonschema ._types import TypeChecker
17
+ from jsonschema .exceptions import ValidationError
18
+ from jsonschema .validators import RefResolver
20
19
21
20
# For code authors working on the validator protocol, these are the three
22
21
# use-cases which should be kept in mind:
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ console_scripts =
62
62
jsonschema = schemas/*.json, schemas/*/*.json
63
63
64
64
[flake8]
65
+ ban-relative-imports = true
65
66
inline-quotes = "
66
67
exclude =
67
68
jsonschema/__init__.py
Original file line number Diff line number Diff line change @@ -81,10 +81,11 @@ commands = {envbindir}/detect-secrets scan {toxinidir}
81
81
[testenv:style]
82
82
deps =
83
83
flake8
84
+ flake8-broken-line
84
85
flake8-bugbear
85
86
flake8-commas
86
87
flake8-quotes
87
- flake8-broken-line
88
+ flake8-tidy-imports
88
89
commands =
89
90
{envpython} -m flake8 {posargs} {toxinidir}/jsonschema {toxinidir}/docs
90
91
You can’t perform that action at this time.
0 commit comments