From 8e0ee0a4ab56bec9b7db2fb7f8142f3789f8f4a5 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 31 Aug 2020 18:59:32 +0100 Subject: [PATCH] Improve script output formatting --- bin/run_example_ci_configs.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/run_example_ci_configs.py b/bin/run_example_ci_configs.py index fd1f24a4..e2173dfd 100755 --- a/bin/run_example_ci_configs.py +++ b/bin/run_example_ci_configs.py @@ -54,7 +54,7 @@ services = [ name='github', src_config_path='examples/github-minimal.yml', dst_config_path='.github/workflows/example.yml', - badge_md='![Build](https://github.com/joerick/cibuildwheel/workflows/Build/badge.svg?branch={branch})', + badge_md='[![Build](https://github.com/joerick/cibuildwheel/workflows/Build/badge.svg?branch={branch})](https://github.com/joerick/cibuildwheel/actions)', ), CIService( name='travis-ci', @@ -96,7 +96,7 @@ def run_example_ci_configs(): run(['git', 'add', example_project], check=True) run(['git', 'commit', '-m', textwrap.dedent(f''' - Test example minimal configs. + Test example minimal configs Testing files: {[s.src_config_path for s in services]} Generated from branch: {previous_branch} @@ -106,17 +106,17 @@ def run_example_ci_configs(): print('---') print() - print('**Examples test run**') - print() - print(f'Branch: [{branch_name}](https://github.com/joerick/cibuildwheel/tree/{branch_name})') - print() - print('| Service | Config | Status |') - print('|---|---|---|') + print('> **Examples test run**') + print('> ') + print(f'> Branch: [{branch_name}](https://github.com/joerick/cibuildwheel/tree/{branch_name})') + print('> ') + print('> | Service | Config | Status |') + print('> |---|---|---|') for service in services: badge = service.badge_md.format(branch=branch_name, branch_escaped=quote(branch_name, safe='')) - print(f'| {service.name} | {service.src_config_path} | {badge} |') - print() - print('Generated by `bin/run_example_ci_config.py`') + print(f'> | {service.name} | `{service.src_config_path}` | {badge} |') + print('> ') + print('> Generated by `bin/run_example_ci_config.py`') print() print('---') finally: