[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 <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-12-27 09:16:03 +01:00
parent c849731eb1
commit fcdc2c2cd2
13 changed files with 114 additions and 68 deletions

View file

@ -325,6 +325,7 @@ class Preferences:
super().__init__()
self.key_value_settings = {
# fmt: off
'categories': MultipleChoiceSetting(
['general'],
is_locked('categories'),
@ -422,6 +423,7 @@ class Preferences:
'False': False
}
),
# fmt: on
}
self.engines = EnginesSetting('engines', choices=engines)