From cb0c2343a20fa67a04f5f913eb60bde473190bf5 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 22 Sep 2023 01:16:14 +0200 Subject: [PATCH] [MIRROR] Move the DreamChecker annotator into a new module [MDB IGNORE] (#23826) * Move the DreamChecker annotator into a new module * Fixing the diffs for this, it should be a rename not an addition * Fixing diffs pt 2 --------- Co-authored-by: distributivgesetz Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> --- tools/ci/annotate_dm.sh | 2 +- tools/{ci/annotate_dm.py => dm_annotator/__main__.py} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename tools/{ci/annotate_dm.py => dm_annotator/__main__.py} (91%) diff --git a/tools/ci/annotate_dm.sh b/tools/ci/annotate_dm.sh index aae883f71f0..e43f930ba1a 100755 --- a/tools/ci/annotate_dm.sh +++ b/tools/ci/annotate_dm.sh @@ -1,4 +1,4 @@ #!/bin/bash set -euo pipefail -tools/bootstrap/python tools/ci/annotate_dm.py "$@" +tools/bootstrap/python -m dm_annotator "$@" diff --git a/tools/ci/annotate_dm.py b/tools/dm_annotator/__main__.py similarity index 91% rename from tools/ci/annotate_dm.py rename to tools/dm_annotator/__main__.py index 2fbe7375d9d..4948fd08656 100644 --- a/tools/ci/annotate_dm.py +++ b/tools/dm_annotator/__main__.py @@ -2,7 +2,7 @@ import sys import re import os.path as path -# Usage: python3 annotate_dm.py [filename] +# Usage: tools/bootstrap/python -m dm_annotator [filename] # If filename is not provided, stdin is checked instead def red(text): @@ -44,7 +44,7 @@ def main(): annotate(sys.stdin.read()) else: print(red("Error: No input provided")) - print("Usage: tools/ci/annotate_dm.sh [filename]") + print("Usage: tools/bootstrap/python -m dm_annotator [filename]") sys.exit(1) if __name__ == '__main__':