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 Jul 17, 2023
1 parent bef2051 commit 2c38fc6
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 @@ -105,7 +105,6 @@ def __init__(
poll_freq: int = 15,
do_cleanup: bool = True,
) -> 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 @@ -149,7 +148,6 @@ def __init__(
self.covalent_version = TEMP_COVALENT_VERSION

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 @@ -100,7 +100,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 2c38fc6

Please sign in to comment.