From fcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 27 Dec 2021 09:16:03 +0100 Subject: [format.python] disable py code formatting for some hunks of code Disable the python code formatting from python-black, where the readability of code suffers by formatting. Signed-off-by: Markus Heiser --- tests/unit/test_results.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/unit/test_results.py b/tests/unit/test_results.py index 07d170130..aa99e78c7 100644 --- a/tests/unit/test_results.py +++ b/tests/unit/test_results.py @@ -8,10 +8,14 @@ def fake_result(url='https://aa.bb/cc?dd=ee#ff', title='aaa', content='bbb', engine='wikipedia', **kwargs): - result = {'url': url, - 'title': title, - 'content': content, - 'engine': engine} + result = { + # fmt: off + 'url': url, + 'title': title, + 'content': content, + 'engine': engine, + # fmt: on + } result.update(kwargs) return result -- cgit v1.2.3-54-g00ecf