mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 22:35:40 +01:00
Fix too-broad matcher for custom CI script (#2829)
This commit is contained in:
@ -660,7 +660,9 @@ for fname in files:
|
||||
run_checks(LINT_POST_CHECKS, "POST")
|
||||
|
||||
for f, errs in sorted(errors.items()):
|
||||
err_str = (f"{styled(colorama.Style.BRIGHT, f'{f}:{lineno}:{col}:')} {msg}\n" for lineno, col, msg in errs)
|
||||
bold = functools.partial(styled, colorama.Style.BRIGHT)
|
||||
bold_red = functools.partial(styled, (colorama.Style.BRIGHT, colorama.Fore.RED))
|
||||
err_str = (f"{bold(f'{f}:{lineno}:{col}:')} {bold_red('lint:')} {msg}\n" for lineno, col, msg in errs)
|
||||
print_error_for_file(f, "\n".join(err_str))
|
||||
|
||||
if args.print_slowest:
|
||||
|
Reference in New Issue
Block a user