Make it easy to skip signature update in format.py

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
Paul "TBBle" Hampson 2024-08-12 22:52:43 +09:00
parent 09b83f18af
commit 0c155bef07

View File

@ -244,6 +244,7 @@ If you want to contribute changes to a resolvers list, only edit files from the
# Signatures # Signatures
if signatures_to_update is not None:
for path in [md_path, md_legacy_path, csv_historic_path]: for path in [md_path, md_legacy_path, csv_historic_path]:
try: try:
subprocess.run( subprocess.run(
@ -253,6 +254,7 @@ If you want to contribute changes to a resolvers list, only edit files from the
signatures_to_update.append(path) signatures_to_update.append(path)
# Change to None to skip signature updates, e.g. during development.
signatures_to_update = [] signatures_to_update = []
for md_path in glob(CURRENT_DIR + "/*.md"): for md_path in glob(CURRENT_DIR + "/*.md"):