Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 25, 2023
1 parent 01aaf0a commit 44e5c39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions covalent_ec2_plugin/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def __init__(
do_cleanup: bool = True,
covalent_version_to_install: str = "", # Current stable version
) -> None:

username = username or get_config("executors.ec2.username")
hostname = hostname or get_config("executors.ec2.hostname")
profile = profile or get_config("executors.ec2.profile")
Expand Down Expand Up @@ -145,7 +144,6 @@ def __init__(
self.covalent_version = covalent_version_to_install

async def _run_async_subprocess(self, cmd: List[str], cwd=None, log_output: bool = False):

proc = await asyncio.create_subprocess_shell(
" ".join(cmd), stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, cwd=cwd
)
Expand Down
1 change: 0 additions & 1 deletion tests/ec2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ async def test_setup(executor: ec2.EC2Executor, mocker: mock, tmp_path: Path):
mocker.patch("covalent_ec2_plugin.ec2.Path.exists", return_value=False)

with mock.patch("builtins.open", mock.mock_open()) as mocked_open:

await executor.setup(mock_task_metadata)

ec2_client_mock.create_key_pair.assert_called_with(KeyName=mock_key_name)
Expand Down

0 comments on commit 44e5c39

Please sign in to comment.