From f2fcffd7ce237ddcc51ed6f759390b857dac3904 Mon Sep 17 00:00:00 2001 From: "Gergely Daroczi (@daroczig)" Date: Thu, 28 Dec 2023 23:50:29 +0100 Subject: [PATCH] lint the name of the linter step :facepalm: --- .github/workflows/tests.yaml | 2 +- sc_crawler/vendors/aws.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 24474c49..919a4355 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,5 +16,5 @@ jobs: run: pip install . - name: Tests run: tox - - name: Litners + - name: Linters run: tox -e lint diff --git a/sc_crawler/vendors/aws.py b/sc_crawler/vendors/aws.py index 9310a1c6..e15ebb99 100644 --- a/sc_crawler/vendors/aws.py +++ b/sc_crawler/vendors/aws.py @@ -381,7 +381,7 @@ def annotate_instance_type(instance_type_id): def get_storage(instance_type): """Get storage size and type (tupple) from instance details.""" - if not "InstanceStorageInfo" in instance_type: + if "InstanceStorageInfo" not in instance_type: return (0, None) info = instance_type.get("InstanceStorageInfo") storage_size = info.get("TotalSizeInGB", 0) * 1024 * 1024