From a4c1d36d6c8236a9471bfd8a3486ce9476410e1e244bb232edfbd5c1de2647b5 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 11 Jul 2026 07:54:27 +0200 Subject: [PATCH] fix: pylint --- src/rougail/output_environment/__version__.py | 2 ++ src/rougail/output_environment/export.py | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/rougail/output_environment/__version__.py b/src/rougail/output_environment/__version__.py index 1ee6e20..f015958 100644 --- a/src/rougail/output_environment/__version__.py +++ b/src/rougail/output_environment/__version__.py @@ -1 +1,3 @@ +# version of this module, use for example in rougail commandline to display versions +# (with --cli.versions option) __version__ = "0.1.0" diff --git a/src/rougail/output_environment/export.py b/src/rougail/output_environment/export.py index e11dab1..ebb1ead 100644 --- a/src/rougail/output_environment/export.py +++ b/src/rougail/output_environment/export.py @@ -16,6 +16,8 @@ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . """ +from typing import Optional + from shlex import quote from rougail.error import ExtensionError @@ -24,6 +26,7 @@ from .i18n import _ class RougailOutputEnvironment: + """Rougail output that generate environment variables""" output_name = "environment" def __init__( @@ -187,7 +190,8 @@ class RougailOutputEnvironment: if self.submulti_separator in value: raise ExtensionError( _( - 'the character "{0}" is a sub multi separator, this character must not in the "{1}" value' + 'the character "{0}" is a sub multi separator, ' + 'this character must not in the "{1}" value' ).format(self.submulti_separator, name) ) new_values.append(value) @@ -196,7 +200,8 @@ class RougailOutputEnvironment: if not self.multi_in_array and self.multi_separator in values: raise ExtensionError( _( - 'the character "{0}" is a multi separator, this character must not in the "{1}" value' + 'the character "{0}" is a multi separator, ' + 'this character must not in the "{1}" value' ).format(self.multi_separator, name) ) return quote(values)