From 553c045e41bc8c17027b0d20df2a0e275ae11841 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Tue, 12 Mar 2024 16:21:35 -0400 Subject: [PATCH] CI: Update check_git_repository_name hard-coding exceptions --- scripts/check_description_files.py | 64 ++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/scripts/check_description_files.py b/scripts/check_description_files.py index c1becc54f..c421ec25c 100644 --- a/scripts/check_description_files.py +++ b/scripts/check_description_files.py @@ -88,6 +88,9 @@ def check_git_repository_name(extension_name, metadata): repo_name = os.path.splitext(urlparse.urlsplit(metadata["scmurl"]).path.split("/")[-1])[0] + if repo_name in REPOSITORY_NAME_CHECK_EXCEPTIONS: + return + if "slicer" not in repo_name.lower(): variations = [prefix + repo_name for prefix in ["Slicer-", "Slicer_", "SlicerExtension-", "SlicerExtension_"]] @@ -185,5 +188,66 @@ def main(): sys.exit(total_failure_count) +REPOSITORY_NAME_CHECK_EXCEPTIONS = [ + "3DMetricTools", + "ai-assisted-annotation-client", + "aigt", + "AnglePlanes-Extension", + "AnomalousFiltersExtension", + "BoneTextureExtension", + "CarreraSlice", + "ChangeTrackerPy", + "CMFreg", + "CurveMaker", + "DatabaseInteractorExtension", + "dcmqi", + "DSC_Analysis", + "EasyClip-Extension", + "ErodeDilateLabel", + "FilmDosimetryAnalysis", + "GelDosimetryAnalysis", + "GyroGuide", + "iGyne", + "ImageMaker", + "IntensitySegmenter", + "MeshStatisticsExtension", + "MeshToLabelMap", + "ModelClip", + "MONAILabel", + "mpReview", + "NeedleFinder", + "opendose3d", + "OsteotomyPlanner", + "PBNRR", + "PedicleScrewSimulator", + "PercutaneousApproachAnalysis", + "PerkTutor", + "PET-IndiC", + "PETLiverUptakeMeasurement", + "PETTumorSegmentation", + "PickAndPaintExtension", + "PkModeling", + "PortPlacement", + "Q3DCExtension", + "QuantitativeReporting", + "ResectionPlanner", + "ScatteredTransform", + "Scoliosis", + "SegmentationAidedRegistration", + "SegmentationReview", + "SegmentRegistration", + "ShapePopulationViewer", + "ShapeRegressionExtension", + "ShapeVariationAnalyzer", + "SkullStripper", + "SNRMeasurement", + "SPHARM-PDM", + "T1Mapping", + "TCIABrowser", + "ukftractography", + "VASSTAlgorithms", +] + + if __name__ == "__main__": main()