Skip to content

Commit 68d58f4

Browse files
style: apply ruff formatting to jwt.py
Co-Authored-By: [email protected] <[email protected]>
1 parent 8648a53 commit 68d58f4

File tree

1 file changed

+6
-1
lines changed
  • airbyte_cdk/sources/declarative/auth

1 file changed

+6
-1
lines changed

airbyte_cdk/sources/declarative/auth/jwt.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,12 @@ def _get_secret_key(self) -> JwtKeyTypes:
185185

186186
# Normalize escaped newlines for PEM-style keys
187187
# This handles cases where keys are stored with literal \n characters instead of actual newlines
188-
if isinstance(secret_key, str) and "\\n" in secret_key and "-----BEGIN" in secret_key and "KEY-----" in secret_key:
188+
if (
189+
isinstance(secret_key, str)
190+
and "\\n" in secret_key
191+
and "-----BEGIN" in secret_key
192+
and "KEY-----" in secret_key
193+
):
189194
secret_key = secret_key.replace("\\n", "\n")
190195

191196
if self._passphrase:

0 commit comments

Comments
 (0)