fix: black

This commit is contained in:
egarette@silique.fr 2026-06-21 17:07:53 +02:00
parent 80eecbc4f4
commit e0a3cdd7a4
3 changed files with 13 additions and 13 deletions

View file

@ -25,8 +25,8 @@ from .__version__ import __version__
class RougailUserDataCommandline: class RougailUserDataCommandline:
"""Load parameter for commande line """Load parameter for commande line"""
"""
def __init__( def __init__(
self, self,
config: "Config", config: "Config",
@ -56,10 +56,7 @@ class RougailUserDataCommandline:
self.warnings = [] self.warnings = []
self.allow_unknown = allow_unknown self.allow_unknown = allow_unknown
self.parser = TiramisuCmdlineParser( self.parser = TiramisuCmdlineParser(
self.config, self.config, prog=prog, exit_on_error=False, **kwargs
prog=prog,
exit_on_error=False,
**kwargs
) )
def run(self): def run(self):
@ -76,10 +73,13 @@ class RougailUserDataCommandline:
if not option.isfollower(): if not option.isfollower():
values[key] = self.config.option(key).value.get() values[key] = self.config.option(key).value.get()
else: else:
values[key] = [self.config.option(key, index).value.get() for index in range(option.value.len())] values[key] = [
self.config.option(key, index).value.get()
for index in range(option.value.len())
]
return [ return [
{ {
"source": _('the command line'), "source": _("the command line"),
"errors": self.errors, "errors": self.errors,
"warnings": self.warnings, "warnings": self.warnings,
"values": values, "values": values,

View file

@ -1,2 +1 @@
__version__ = "1.0.0rc3" __version__ = "1.0.0rc3"

View file

@ -20,8 +20,9 @@ from gettext import translation
from pathlib import Path from pathlib import Path
t = translation( t = translation(
"rougail_user_data_commandline", str(Path(__file__).parent / "locale"), fallback=True "rougail_user_data_commandline",
str(Path(__file__).parent / "locale"),
fallback=True,
) )
_ = t.gettext _ = t.gettext