Commit 53f7c05
authored
refactor(complexity): migrate tools_utility.py to class-based pattern (#1423)
* refactor(complexity): migrate tools_utility.py to class-based pattern
Extracts UtilityTools class from register_utility_tools closure, removing
the C901 suppression for this file from pyproject.toml.
- register_utility_tools (92) reduced to thin wrappers (~2)
- get_logs (20) reduced via _validate_log_level, _collect_log_warnings,
_validate_log_slug, _fetch_log_source helpers
- _get_logbook (16) reduced via _coerce_logbook_params, _build_pagination_hint
- _get_logger_info (11) reduced via _parse_logger_entry static method
- _get_system_service_log (11) reduced via _addon_auth_error_suggestions static method
- slug type narrowed with assert in _fetch_log_source instead of type: ignore
* fix: resolve implicit string concatenation in _addon_auth_error_suggestions1 parent 1631ad1 commit 53f7c05
2 files changed
Lines changed: 393 additions & 350 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
0 commit comments