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 Sep 5, 2022
1 parent 3ea4e3e commit 2dbcfc1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
## Covalent EC2 Executor Plugin

Covalent is a Pythonic workflow tool used to execute tasks on advanced computing hardware.
This executor plugin interfaces Covalent with an EC2 instance over SSH. This plugin is appropriate for executing workflow tasks on an instance that has been auto-provisioned and configured by the plugin.
This executor plugin interfaces Covalent with an EC2 instance over SSH. This plugin is appropriate for executing workflow tasks on an instance that has been auto-provisioned and configured by the plugin.

## Installation

To use this plugin with Covalent, simply install it using `pip`:

```
```
pip install covalent-ec2-plugin
```

Expand Down Expand Up @@ -69,7 +69,7 @@ executor = ct.executor.EC2Executor(
@ct.electron(executor=executor)
def my_custom_task(x, y):
return x + y
return x + y
```

For more information on how to get started with Covalent, check out the project [homepage](https://github.com/AgnostiqHQ/covalent) and the official [documentation](https://covalent.readthedocs.io/en/latest/).
Expand Down
6 changes: 3 additions & 3 deletions covalent_ec2_plugin/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ async def teardown(self, task_metadata: Dict) -> None:
"-auto-approve",
f"-state={state_file}"
]

cmd = base_cmd + self.infra_vars

app_log.debug(f"Infra vars are {self.infra_vars}")
app_log.debug(f"CMD run: {cmd}")

proc = subprocess.run(
cmd,
cwd=self._TF_DIR,
Expand Down
2 changes: 1 addition & 1 deletion infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ variable "python3_path" {
variable "remote_cache_dir" {
default = "/home/ubuntu/.cache/covalent"
description = "Remote cache directory"

}
variable "key_name" {
default = ""
Expand Down
10 changes: 5 additions & 5 deletions tests/create_executor.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# # Copyright 2021 Agnostiq Inc.
# #
# # This file is part of Covalent.
# #
# # Licensed under the GNU Affero General Public License 3.0 (the "License").
# #
# # Licensed under the GNU Affero General Public License 3.0 (the "License").
# # A copy of the License may be obtained with this software package or at
# #
# # https://www.gnu.org/licenses/agpl-3.0.en.html
# #
# # Use of this file is prohibited except in compliance with the License. Any
# # modifications or derivative works of this file must retain this copyright
# # notice, and modified files must contain a notice indicating that they have
# # Use of this file is prohibited except in compliance with the License. Any
# # modifications or derivative works of this file must retain this copyright
# # notice, and modified files must contain a notice indicating that they have
# # been altered from the originals.
# #
# # Covalent is distributed in the hope that it will be useful, but WITHOUT
Expand Down
4 changes: 2 additions & 2 deletions tests/functional_tests/svm_workflow_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
numpy_install = "/home/ubuntu/miniconda3/envs/covalent-dev/bin/python -m pip install numpy==1.22.4"

@ct.electron(
executor=ec2_exec,
executor=ec2_exec,
deps_bash=ct.DepsBash(commands=[f"{sklearn_install}"])
)
def load_data():
Expand All @@ -19,7 +19,7 @@ def load_data():
return iris.data, iris.target

@ct.electron(
executor=ec2_exec,
executor=ec2_exec,
deps_bash=ct.DepsBash(commands=[f"{sklearn_install}"])
)
def train_svm(data, C, gamma):
Expand Down

0 comments on commit 2dbcfc1

Please sign in to comment.