Switch to ebb-lint, and cry a bit inside.

This commit is contained in:
Julian Berman 2017-06-04 11:19:29 -04:00
parent d0f2ef740b
commit c8af2b376c
3 changed files with 9 additions and 5 deletions

View File

@ -196,7 +196,7 @@ class TestValidationErrorMessages(unittest.TestCase):
u"additionalProperties": False,
u"patternProperties": {
u"^abc$": {u"type": u"string"},
u"^def$": {u"type": u"string"}
u"^def$": {u"type": u"string"},
}}
message = self.message_for({u"zebra": 123}, schema,
cls=Draft4Validator)

View File

@ -14,9 +14,14 @@ from jsonschema.compat import (
Sequence, urljoin, urlsplit, urldefrag, unquote, urlopen,
str_types, int_types, iteritems, lru_cache,
)
from jsonschema.exceptions import ErrorTree # Backwards compat # noqa: F401
from jsonschema.exceptions import RefResolutionError, SchemaError, UnknownType
# Sigh. https://gitlab.com/pycqa/flake8/issues/280
# https://github.com/pyga/ebb-lint/issues/7
# Imported for backwards compatibility.
from jsonschema.exceptions import ErrorTree
ErrorTree
_unset = _utils.Unset()

View File

@ -55,9 +55,8 @@ commands =
[testenv:style]
basepython = pypy
deps = flake8
commands =
flake8 [] --max-complexity 10 {toxinidir}/jsonschema
deps = ebb-lint
commands = flake8 {posargs} --max-complexity 10 {toxinidir}/jsonschema
[flake8]