Skip to content

Commit

Permalink
CI: Update check_description_files hard-coding repo name check except…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
jcfr committed Mar 12, 2024
1 parent f848f5f commit 930b93b
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions scripts/check_description_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,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_"]]
Expand Down Expand Up @@ -194,5 +197,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()

0 comments on commit 930b93b

Please sign in to comment.