Skip to content

Commit bff4f00

Browse files
committed
python-jsonschema#708 - satisfy flake8 style CI checks - attempt 1
1 parent 917f384 commit bff4f00

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

jsonschema/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _json_formatter(cls, x):
7979
def _simple_msg(self, path, type, header=False):
8080
begin_end_chars = '╒╕' if header is True else '══'
8181
return '{}══[{}]═══({})'.format(begin_end_chars[0], type, path) \
82-
.ljust(self._WIDTH - 1, '═') + begin_end_chars[1]
82+
.ljust(self._WIDTH - 1, '═') + begin_end_chars[1]
8383

8484
def _error_msg(self, path, type, body):
8585
HEADER = self._simple_msg(path, type, header=True)

jsonschema/exceptions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Validation errors, and some surrounding helpers.
33
"""
4-
import json
54
from collections import defaultdict, deque
65
import itertools
76
import pprint

jsonschema/tests/test_cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def test_invalid_schema_pretty_output(self):
308308

309309
with self.assertRaises(SchemaError) as e:
310310
validate(schema=schema, instance="")
311-
error = str(e.exception._formatted_message(formatter=cli._PrettyFormatter._json_formatter))
312-
311+
error = str(e.exception._formatted_message(
312+
formatter=cli._PrettyFormatter._json_formatter))
313313

314314
self.assertOutputs(
315315
files=dict(some_schema=json.dumps(schema)),
@@ -339,8 +339,8 @@ def test_invalid_schema_multiple_errors_pretty_output(self):
339339

340340
with self.assertRaises(SchemaError) as e:
341341
validate(schema=schema, instance="")
342-
error = str(e.exception._formatted_message(formatter=cli._PrettyFormatter._json_formatter))
343-
342+
error = str(e.exception._formatted_message(
343+
formatter=cli._PrettyFormatter._json_formatter))
344344

345345
self.assertOutputs(
346346
files=dict(some_schema=json.dumps(schema)),
@@ -377,8 +377,8 @@ def test_invalid_schema_with_invalid_instance_pretty_output(self):
377377

378378
with self.assertRaises(SchemaError) as e:
379379
validate(schema=schema, instance=instance)
380-
error = str(e.exception._formatted_message(formatter=cli._PrettyFormatter._json_formatter))
381-
380+
error = str(e.exception._formatted_message(
381+
formatter=cli._PrettyFormatter._json_formatter))
382382

383383
self.assertOutputs(
384384
files=dict(

0 commit comments

Comments
 (0)