Skip to content

Commit 77d44d7

Browse files
committed
ruff fix
1 parent 2195111 commit 77d44d7

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

airbyte_cdk/connector.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import os
99
import pkgutil
1010
from abc import ABC, abstractmethod
11-
from email import message
12-
from io import StringIO
1311
from pathlib import Path
1412
from typing import Any, Generic, Mapping, Optional, Self, TypeVar
1513

@@ -22,7 +20,6 @@
2220
)
2321
from airbyte_cdk.models.airbyte_protocol import AirbyteMessage, Type
2422
from airbyte_cdk.sources.message.repository import MessageRepository, PassthroughMessageRepository
25-
from airbyte_cdk.test.entrypoint_wrapper import EntrypointOutput
2623
from airbyte_cdk.utils.cli_arg_parse import ConnectorCLIArgs, parse_cli_args
2724

2825

@@ -33,6 +30,7 @@ def _load_optional_package_file(package: str, filename: str) -> Optional[bytes]:
3330
except FileNotFoundError:
3431
return None
3532

33+
3634
def _write_config(config: Mapping[str, Any], config_path: str) -> None:
3735
Path(config_path).write_text(json.dumps(config))
3836

airbyte_cdk/utils/cli_arg_parse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
22
"""CLI Argument Parsing Utilities."""
33

4-
54
import argparse
65
import json
76
from collections.abc import MutableMapping

unit_tests/sources/file_based/test_scenarios.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,13 @@ def spec(capsys: CaptureFixture[str], scenario: TestScenario[AbstractSource]) ->
235235
def check(
236236
capsys: CaptureFixture[str], tmp_path: PosixPath, scenario: TestScenario[AbstractSource]
237237
) -> Dict[str, Any]:
238-
scenario.source.launch_with_cli_args([
239-
"check",
240-
"--config",
241-
make_file(tmp_path / "config.json", scenario.config),
242-
])
238+
scenario.source.launch_with_cli_args(
239+
[
240+
"check",
241+
"--config",
242+
make_file(tmp_path / "config.json", scenario.config),
243+
]
244+
)
243245
captured = capsys.readouterr()
244246
return _find_connection_status(captured.out.splitlines())
245247

0 commit comments

Comments
 (0)