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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
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
"""
from .i18n import _

View file

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

View file

@ -20,8 +20,9 @@ from gettext import translation
from pathlib import Path
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