Skip to content

Commit c8af2b3

Browse files
committed
Switch to ebb-lint, and cry a bit inside.
1 parent d0f2ef7 commit c8af2b3

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

jsonschema/tests/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_additionalProperties_false_patternProperties(self):
196196
u"additionalProperties": False,
197197
u"patternProperties": {
198198
u"^abc$": {u"type": u"string"},
199-
u"^def$": {u"type": u"string"}
199+
u"^def$": {u"type": u"string"},
200200
}}
201201
message = self.message_for({u"zebra": 123}, schema,
202202
cls=Draft4Validator)

jsonschema/validators.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@
1414
Sequence, urljoin, urlsplit, urldefrag, unquote, urlopen,
1515
str_types, int_types, iteritems, lru_cache,
1616
)
17-
from jsonschema.exceptions import ErrorTree # Backwards compat # noqa: F401
1817
from jsonschema.exceptions import RefResolutionError, SchemaError, UnknownType
1918

19+
# Sigh. https://gitlab.com/pycqa/flake8/issues/280
20+
# https://github.com/pyga/ebb-lint/issues/7
21+
# Imported for backwards compatibility.
22+
from jsonschema.exceptions import ErrorTree
23+
ErrorTree
24+
2025

2126
_unset = _utils.Unset()
2227

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ commands =
5555

5656
[testenv:style]
5757
basepython = pypy
58-
deps = flake8
59-
commands =
60-
flake8 [] --max-complexity 10 {toxinidir}/jsonschema
58+
deps = ebb-lint
59+
commands = flake8 {posargs} --max-complexity 10 {toxinidir}/jsonschema
6160

6261

6362
[flake8]

0 commit comments

Comments
 (0)