diff --git a/secret_loader/__init__.py b/secret_loader/__init__.py index 71b7802..7469c79 100644 --- a/secret_loader/__init__.py +++ b/secret_loader/__init__.py @@ -66,10 +66,10 @@ ENV_KEY_PREFIX = 'ENV_KEY_PREFIX' ENV_KEY_SECRETS_DIRECTORY = 'SECRETS_DIRECTORY' ENV_KEY_VAULT_URL = 'VAULT_URL' -ENV_KEY_VAULT_TOKEN = 'VAULT_TOKEN' #noqa: S105 +ENV_KEY_VAULT_TOKEN = 'VAULT_TOKEN' # noqa: S105 ENV_KEY_VAULT_MOUNT_POINT = 'VAULT_MOUNT_POINT' -ENV_KEY_PASS_FOLDER = 'PASS_STORE_SUBFOLDER' #noqa: S105 +ENV_KEY_PASS_FOLDER = 'PASS_STORE_SUBFOLDER' # noqa: S105 DEFAULT_SECRETS_DIRECTORY = Path('secrets') @@ -126,7 +126,11 @@ class SecretLoader: ), 'Prefix must not end with _ (this will be added automatically)' # Setup secrets path - self.secret_folder = Path(self.hardcoded.get(ENV_KEY_SECRETS_DIRECTORY) or self._load_or_none_env(ENV_KEY_SECRETS_DIRECTORY) or DEFAULT_SECRETS_DIRECTORY) + self.secret_folder = Path( + self.hardcoded.get(ENV_KEY_SECRETS_DIRECTORY) + or self._load_or_none_env(ENV_KEY_SECRETS_DIRECTORY) + or DEFAULT_SECRETS_DIRECTORY, + ) # Setup pass self.pass_folder = self._load_or_none(ENV_KEY_PASS_FOLDER)