diff --git a/scripts/.sourcery.yaml b/scripts/.sourcery.yaml index a03b9ac867099504acb1eeea482e92697fe62530..d5d2043b7e353a8aa8ff87b1939176886f0f918b 100644 --- a/scripts/.sourcery.yaml +++ b/scripts/.sourcery.yaml @@ -20,7 +20,6 @@ rule_settings: - inline-immediately-returned-variable - remove-redundant-if - switch - - dict-literal - low-code-quality - for-append-to-extend - raise-specific-error diff --git a/scripts/generate_release_metadata.py b/scripts/generate_release_metadata.py index cb601147e679d2b5e2420d968f3d69e90c5c76e9..40deea60e487cc1cb10b8104f878c52c5970537f 100755 --- a/scripts/generate_release_metadata.py +++ b/scripts/generate_release_metadata.py @@ -31,7 +31,7 @@ def generate_metadata( elif filename.endswith(machine + ".wic"): image_wic = filename - metadata = dict() + metadata = {} metadata["files"] = [] metadata["version"] = version @@ -39,31 +39,31 @@ def generate_metadata( metadata["date"] = datetime.now().strftime("%Y-%m-%d") if install_script is not None: - new_file = dict() + new_file = {} new_file["name"] = "Install Script" new_file["path"] = install_script metadata["files"].append(new_file) if image_general is not None: - new_file = dict() + new_file = {} new_file["name"] = "Image" new_file["path"] = image_general metadata["files"].append(new_file) if image_wic is not None: - new_file = dict() + new_file = {} new_file["name"] = "SD-Card Image (WIC)" new_file["path"] = image_wic metadata["files"].append(new_file) if sdk is not None: - new_file = dict() + new_file = {} new_file["name"] = "SDK" new_file["path"] = "sdk/" + sdk + ".sh" metadata["files"].append(new_file) if licenses is not None: - new_file = dict() + new_file = {} new_file["name"] = "Licenses" new_file["path"] = licenses metadata["files"].append(new_file)