Return the program exit code.
(self)
| 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.""" |
no outgoing calls