Skip to content

Commit 23cf74d

Browse files
committed
chore: ran prek hooks to format and lint
1 parent ad9e88a commit 23cf74d

3 files changed

Lines changed: 2400 additions & 2337 deletions

File tree

providers/git/src/airflow/providers/git/hooks/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(
147147
raise AirflowException("Missing inline private_key or key_file for GitHub App Auth")
148148
if self.key_file and not self.private_key:
149149
try:
150-
with open(self.key_file, "r", encoding="utf-8") as key_file:
150+
with open(self.key_file, encoding="utf-8") as key_file:
151151
self.private_key = key_file.read()
152152
except OSError as exc:
153153
raise AirflowException(

providers/git/tests/unit/git/hooks/test_git.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,9 @@ def test_passphrase_askpass_cleaned_up(self, create_connection_without_db):
441441
# --- GitHub App auth tests ---
442442

443443
def test_only_app_id_without_installation_id_raises(self):
444-
with pytest.raises(AirflowException, match="Both 'github_app_id' and 'github_installation_id' must be provided"):
444+
with pytest.raises(
445+
AirflowException, match="Both 'github_app_id' and 'github_installation_id' must be provided"
446+
):
445447
GitHook(git_conn_id=CONN_APP_ONLY_APP_ID)
446448

447449
def test_only_installation_id_without_app_id_raises(self):

0 commit comments

Comments
 (0)