(config: Any,
default_filename: str = 'workflow_stats.json')
| 24 | |
| 25 | |
| 26 | def get_stats_path(config: Any, |
| 27 | default_filename: str = 'workflow_stats.json') -> str: |
| 28 | stats_file = getattr(config, 'stats_file', None) |
| 29 | output_dir = getattr(config, 'output_dir', './output') |
| 30 | if stats_file: |
| 31 | if os.path.isabs(stats_file): |
| 32 | return stats_file |
| 33 | return os.path.join(output_dir, stats_file) |
| 34 | return os.path.join(output_dir, default_filename) |
| 35 | |
| 36 | |
| 37 | def summarize_usage(messages: Optional[Iterable[Message]]) -> Dict[str, int]: |
no outgoing calls
no test coverage detected