style: apply ruff format to all source files
This commit is contained in:
@@ -21,7 +21,9 @@ def resolve_env_vars(value: str) -> str:
|
||||
var_name = match.group(1)
|
||||
env_value = os.environ.get(var_name)
|
||||
if env_value is None:
|
||||
logger.warning("Environment variable %s is not set, using empty string", var_name)
|
||||
logger.warning(
|
||||
"Environment variable %s is not set, using empty string", var_name
|
||||
)
|
||||
return ""
|
||||
return env_value
|
||||
|
||||
@@ -182,5 +184,7 @@ def save_period_to_config(
|
||||
|
||||
ensure_config_dir(path.parent)
|
||||
with open(path, "w", encoding="utf-8") as fh:
|
||||
yaml.dump(raw, fh, allow_unicode=True, default_flow_style=False, sort_keys=False)
|
||||
yaml.dump(
|
||||
raw, fh, allow_unicode=True, default_flow_style=False, sort_keys=False
|
||||
)
|
||||
path.chmod(0o600)
|
||||
|
||||
Reference in New Issue
Block a user