From 53637f4ad783c80491e030c8fffe1f759233bd36 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 5 Nov 2024 15:04:29 +1300 Subject: [PATCH] refactor: be consistent in quotes Signed-off-by: Gareth Jones --- scripts/update-ecosystems-lists.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/update-ecosystems-lists.py b/scripts/update-ecosystems-lists.py index da63814..7320cae 100755 --- a/scripts/update-ecosystems-lists.py +++ b/scripts/update-ecosystems-lists.py @@ -25,14 +25,14 @@ def update_json_schema(): schema = json.loads(open('validation/schema.json').read()) names = ecosystems.keys() - pattern = "" + pattern = '' for name in names: - pattern += name.replace(".", "\\.") - pattern += "|" + pattern += name.replace('.', '\\.') + pattern += '|' # this is a special "ecosystem" name - pattern += "GIT" + pattern += 'GIT' schema['$defs']['ecosystemName']['enum'] = list(names) schema['$defs']['ecosystemWithSuffix']['pattern'] = f'^({pattern})(:.+)?$' @@ -64,7 +64,7 @@ def update_schema_md(): table_start_index = md.index(MARKDOWN_TABLE_MARKER_START) table_end_index = md.index(MARKDOWN_TABLE_MARKER_END) - assert table_start_index < table_end_index, "Table start index must be before table end index" + assert table_start_index < table_end_index, 'Table start index must be before table end index' table = generate_ecosystems_markdown_table() table += '| Your ecosystem here. | [Send us a PR](https://github.com/ossf/osv-schema/compare). |\n'