From 6415c2f99c90b7173b45b00ea0f388ca086a9464 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Tue, 12 Mar 2024 16:14:17 -0400 Subject: [PATCH 1/2] CI: Accept repository name with at least "Slicer" or "slicer" --- scripts/check_description_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_description_files.py b/scripts/check_description_files.py index 70e32e21d..c1becc54f 100644 --- a/scripts/check_description_files.py +++ b/scripts/check_description_files.py @@ -88,7 +88,7 @@ def check_git_repository_name(extension_name, metadata): repo_name = os.path.splitext(urlparse.urlsplit(metadata["scmurl"]).path.split("/")[-1])[0] - if not repo_name.startswith("Slicer"): + if "slicer" not in repo_name.lower(): variations = [prefix + repo_name for prefix in ["Slicer-", "Slicer_", "SlicerExtension-", "SlicerExtension_"]] From cb956d6fa6b3cde28e372e7d4383cdd9810e4707 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Tue, 12 Mar 2024 16:21:35 -0400 Subject: [PATCH 2/2] 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()