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

@ -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