From e0f8e55d40220755c4cc3b5f1cb10524e5b21c90 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 21 Jun 2026 17:06:32 +0200 Subject: [PATCH] fix: black --- src/rougail/output_json/__init__.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/rougail/output_json/__init__.py b/src/rougail/output_json/__init__.py index ed8b41f..1de0258 100644 --- a/src/rougail/output_json/__init__.py +++ b/src/rougail/output_json/__init__.py @@ -1,7 +1,7 @@ """ Silique (https://www.silique.fr) Copyright (C) 2022-2026 - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your @@ -105,7 +105,7 @@ class RougailOutputJson: for w in self.warnings: if isinstance(w, dict): msg, opt = next(iter(w.items())) - warnings.append(_('{0}: {1}').format(opt.path, msg)) + warnings.append(_("{0}: {1}").format(opt.path, msg)) else: warnings.append(w) self.dico["_warnings"] = warnings @@ -117,11 +117,11 @@ class RougailOutputJson: for e in self.errors: if isinstance(e, dict): msg, opt = next(iter(e.items())) - errors.append(_('{0}: {1}').format(opt.path, msg)) + errors.append(_("{0}: {1}").format(opt.path, msg)) else: errors.append(e) self.dico["_errors"] = errors - #self.manage_warnings() + # self.manage_warnings() return False def parse_family( @@ -139,7 +139,11 @@ class RougailOutputJson: parent, ) else: - if namespace is None and self.support_namespace and option.group_type() is groups.namespace: + if ( + namespace is None + and self.support_namespace + and option.group_type() is groups.namespace + ): subnamespace = option.name() else: subnamespace = namespace