MCPcopy
hub / github.com/PyCQA/flake8 / exit_code

Method exit_code

src/flake8/main/application.py:58–66  ·  view source on GitHub ↗

Return the program exit code.

(self)

Source from the content-addressed store, hash-verified

56 self.catastrophic_failure = False
57
58 def exit_code(self) -> int:
59 """Return the program exit code."""
60 if self.catastrophic_failure:
61 return 1
62 assert self.options is not None
63 if self.options.exit_zero:
64 return 0
65 else:
66 return int(self.result_count > 0)
67
68 def make_formatter(self) -> None:
69 """Initialize a formatter based on the parsed options."""

Callers 2

mainFunction · 0.95

Calls

no outgoing calls

Tested by 1