fix the linter warnings

This commit is contained in:
Laurent Rineau 2024-12-13 16:22:51 +01:00
parent 70353fb547
commit 1cf07aaa07
2 changed files with 10 additions and 4 deletions

7
.markdownlint.json Normal file
View File

@ -0,0 +1,7 @@
{
"default": true,
"line-length": false,
"no-duplicate-heading": {
"siblings_only": true
}
}

View File

@ -123,13 +123,12 @@ def get_docker_images() -> Dict[str, List[str]]:
def add_docker_summary(report: List[str], machines_info: Dict[str, List[str]]): def add_docker_summary(report: List[str], machines_info: Dict[str, List[str]]):
"""Add a summary of Docker images used on each machine to the report.""" """Add a summary of Docker images used on each machine to the report."""
report.append("\n## Docker Test Summary\n") report.append("\n## Docker Test Summary")
for machine, images in machines_info.items(): for machine, images in machines_info.items():
report.append(f"\n### Machine: {machine} ({len(images)} images)") report.append(f"\n### Machine: {machine} ({len(images)} images)")
report.append("\n#### Tested Images:") report.append("\n#### Tested Images\n")
for image in images: for image in images:
report.append(f"- {image}") report.append(f"- {image}")
report.append("")
def generate_markdown_report(platforms_info: List[PlatformInfo], version: str) -> str: def generate_markdown_report(platforms_info: List[PlatformInfo], version: str) -> str:
@ -140,7 +139,7 @@ def generate_markdown_report(platforms_info: List[PlatformInfo], version: str) -
report.append(f"\nGenerated on: { report.append(f"\nGenerated on: {
datetime.now().strftime('%Y-%m-%d %H:%M:%S')}") datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
url = TESTSUITE_URL_TEMPLATE.format(version=version) url = TESTSUITE_URL_TEMPLATE.format(version=version)
report.append(f"\nCGAL Version: [{version}]({url})\n") report.append(f"\nCGAL Version: [{version}]({url})")
add_docker_summary(report, machines_info) add_docker_summary(report, machines_info)
report.append("\n## Platforms Summary\n") report.append("\n## Platforms Summary\n")
report.append("| Platform | Debug | OS | Tester | Compiler |") report.append("| Platform | Debug | OS | Tester | Compiler |")