X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d90297c77bab6e22831b05ffc099bfc709cc7785..HEAD:/.vim/bundle/black/src/black/report.py diff --git a/.vim/bundle/black/src/black/report.py b/.vim/bundle/black/src/black/report.py index 7e1c8b4..89899f2 100644 --- a/.vim/bundle/black/src/black/report.py +++ b/.vim/bundle/black/src/black/report.py @@ -1,13 +1,14 @@ """ Summarize Black runs to users. """ + from dataclasses import dataclass from enum import Enum from pathlib import Path from click import style -from black.output import out, err +from black.output import err, out class Changed(Enum): @@ -93,11 +94,13 @@ class Report: if self.change_count: s = "s" if self.change_count > 1 else "" report.append( - style(f"{self.change_count} file{s} {reformatted}", bold=True) + style(f"{self.change_count} file{s} ", bold=True, fg="blue") + + style(f"{reformatted}", bold=True) ) + if self.same_count: s = "s" if self.same_count > 1 else "" - report.append(f"{self.same_count} file{s} {unchanged}") + report.append(style(f"{self.same_count} file{s} ", fg="blue") + unchanged) if self.failure_count: s = "s" if self.failure_count > 1 else "" report.append(style(f"{self.failure_count} file{s} {failed}", fg="red"))