fix: black

This commit is contained in:
egarette@silique.fr 2026-06-21 17:08:11 +02:00
parent 64021c1c71
commit c8709b3ecc
4 changed files with 9 additions and 7 deletions

View file

@ -8,12 +8,12 @@ This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

View file

@ -21,7 +21,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
""" """
from .i18n import _ from .i18n import _

View file

@ -53,7 +53,9 @@ class RougailUserDataEnvironment:
self.with_secrets = True self.with_secrets = True
self.custom_separator = rougailconfig["environment.custom_separator"] self.custom_separator = rougailconfig["environment.custom_separator"]
if not rougailconfig["main_namespace"]: if not rougailconfig["main_namespace"]:
self.default_environment_name = rougailconfig["environment.default_environment_name"] self.default_environment_name = rougailconfig[
"environment.default_environment_name"
]
self.errors = [] self.errors = []
self.warnings = [] self.warnings = []
@ -101,7 +103,7 @@ class RougailUserDataEnvironment:
def get_correct_envs(self): def get_correct_envs(self):
for envvar, envval in os.environ.items(): for envvar, envval in os.environ.items():
if self.custom_separator: if self.custom_separator:
envvar = envvar.replace(self.custom_separator, '.') envvar = envvar.replace(self.custom_separator, ".")
for prefix in self.prefixes: for prefix in self.prefixes:
if envvar.startswith(prefix): if envvar.startswith(prefix):
yield envvar, envval yield envvar, envval

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_environment", str(Path(__file__).parent / "locale"), fallback=True "rougail_user_data_environment",
str(Path(__file__).parent / "locale"),
fallback=True,
) )
_ = t.gettext _ = t.gettext