From 6824ce4190085450024a31111087ad452e6fd574 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 11 May 2025 18:06:37 +0200 Subject: [PATCH] fix: black --- src/rougail/user_data_yaml/__init__.py | 13 ++++++++----- src/rougail/user_data_yaml/config.py | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/rougail/user_data_yaml/__init__.py b/src/rougail/user_data_yaml/__init__.py index 68d3075..9822a29 100644 --- a/src/rougail/user_data_yaml/__init__.py +++ b/src/rougail/user_data_yaml/__init__.py @@ -15,6 +15,7 @@ details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . """ + from ruamel.yaml import YAML from rougail.error import ExtentionError @@ -33,6 +34,7 @@ class RougailUserDataYaml: ) -> None: if rougailconfig is None: from rougail import RougailConfig + rougailconfig = RougailConfig user_data = rougailconfig["step.user_data"] if "yaml" not in user_data: @@ -71,11 +73,11 @@ class RougailUserDataYaml: file_values, filename, ) - if self.file_with_secrets == 'none': + if self.file_with_secrets == "none": allow_secrets_variables = False - elif self.file_with_secrets == 'first': + elif self.file_with_secrets == "first": allow_secrets_variables = idx == 0 - elif self.file_with_secrets == 'last': + elif self.file_with_secrets == "last": if not idx: last_filenames = len(self.filenames) - 1 allow_secrets_variables = idx == last_filenames @@ -87,8 +89,9 @@ class RougailUserDataYaml: "errors": self.errors, "warnings": self.warnings, "values": values, - 'options': {'allow_secrets_variables': allow_secrets_variables, - }, + "options": { + "allow_secrets_variables": allow_secrets_variables, + }, } ) return user_datas diff --git a/src/rougail/user_data_yaml/config.py b/src/rougail/user_data_yaml/config.py index 1a63e3c..584954c 100644 --- a/src/rougail/user_data_yaml/config.py +++ b/src/rougail/user_data_yaml/config.py @@ -17,6 +17,7 @@ details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . """ + from .i18n import _