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 77
88# The files() API was added in Python 3.9.
99if sys .version_info >= (3 , 9 ): # pragma: no cover
10- import importlib . resources as resources
10+ from importlib import resources
1111else : # pragma: no cover
1212 import importlib_resources as resources
1313
Original file line number Diff line number Diff line change 1313 from typing_extensions import Protocol , runtime_checkable
1414
1515from 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
2019
2120# For code authors working on the validator protocol, these are the three
2221# use-cases which should be kept in mind:
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ console_scripts =
6262jsonschema = schemas/*.json, schemas/*/*.json
6363
6464[flake8]
65+ ban-relative-imports = true
6566inline-quotes = "
6667exclude =
6768 jsonschema/__init__.py
Original file line number Diff line number Diff line change @@ -81,10 +81,11 @@ commands = {envbindir}/detect-secrets scan {toxinidir}
8181[testenv:style]
8282deps =
8383 flake8
84+ flake8-broken-line
8485 flake8-bugbear
8586 flake8-commas
8687 flake8-quotes
87- flake8-broken-line
88+ flake8-tidy-imports
8889commands =
8990 {envpython} -m flake8 {posargs} {toxinidir}/jsonschema {toxinidir}/docs
9091
You can’t perform that action at this time.
0 commit comments