Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EverettBerry committed Jan 10, 2024
1 parent cf96e34 commit 7a5ae57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def translate_platform_name(operating_system, preinstalled_software):
return platform



# Translate between the API and what is used locally
def translate_reserved_terms(term_attributes):
lease_contract_length = term_attributes.get("LeaseContractLength")
Expand Down Expand Up @@ -308,7 +307,11 @@ def add_spot_pricing(imap):
}

except botocore.exceptions.ClientError:
print('WARNING: Spot region "{}" not enabled. Falling back to spot advisor.'.format(region))
print(
'WARNING: Spot region "{}" not enabled. Falling back to spot advisor.'.format(
region
)
)
pass


Expand Down
2 changes: 1 addition & 1 deletion render.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def render(data_file, template_file, destination_file, detail_pages=True):

if __name__ == "__main__":
sitemap = []
sitemap.extend(render("www/instances.json", "in/index.html.mako", "www/index.html", False))
sitemap.extend(render("www/instances.json", "in/index.html.mako", "www/index.html"))
sitemap.extend(
render("www/rds/instances.json", "in/rds.html.mako", "www/rds/index.html")
)
Expand Down
4 changes: 2 additions & 2 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,14 +805,14 @@ def add_gpu_info(instances):
},
"g5.xlarge": {
"gpu_model": "NVIDIA A10G",
"compute_capability": 8.6,
"compute_capability": 8.6,
"gpu_count": 1,
"cuda_cores": 9616,
"gpu_memory": 24,
},
"g5.2xlarge": {
"gpu_model": "NVIDIA A10G",
"compute_capability": 8.6,
"compute_capability": 8.6,
"gpu_count": 1,
"cuda_cores": 9616,
"gpu_memory": 24,
Expand Down

0 comments on commit 7a5ae57

Please sign in to comment.