MCPcopy
hub / github.com/psf/black / failed

Method failed

src/black/report.py:52–55  ·  view source on GitHub ↗

Increment the counter for failed reformatting. Write out a message.

(self, src: Path, message: str)

Source from the content-addressed store, hash-verified

50 self.same_count += 1
51
52 def failed(self, src: Path, message: str) -> None:
53 """Increment the counter for failed reformatting. Write out a message."""
54 err(f"error: cannot format {src}: {message}")
55 self.failure_count += 1
56
57 def path_ignored(self, path: Path, message: str) -> None:
58 if self.verbose:

Callers 6

test_report_verboseMethod · 0.95
test_report_quietMethod · 0.95
test_report_normalMethod · 0.95
reformat_codeFunction · 0.80
reformat_oneFunction · 0.80
schedule_formattingFunction · 0.80

Calls 1

errFunction · 0.90

Tested by 3

test_report_verboseMethod · 0.76
test_report_quietMethod · 0.76
test_report_normalMethod · 0.76