Run the actual checks with the FileChecker Manager. This method encapsulates the logic to make a :class:`~flake8.checker.Manger` instance run the checks it is managing.
(self)
| 90 | ) |
| 91 | |
| 92 | def run_checks(self) -> None: |
| 93 | """Run the actual checks with the FileChecker Manager. |
| 94 | |
| 95 | This method encapsulates the logic to make a |
| 96 | :class:`~flake8.checker.Manger` instance run the checks it is |
| 97 | managing. |
| 98 | """ |
| 99 | assert self.file_checker_manager is not None |
| 100 | |
| 101 | self.file_checker_manager.start() |
| 102 | try: |
| 103 | self.file_checker_manager.run() |
| 104 | except exceptions.PluginExecutionFailed as plugin_failed: |
| 105 | print(str(plugin_failed)) |
| 106 | print("Run flake8 with greater verbosity to see more details") |
| 107 | self.catastrophic_failure = True |
| 108 | LOG.info("Finished running") |
| 109 | self.file_checker_manager.stop() |
| 110 | self.end_time = time.time() |
| 111 | |
| 112 | def report_benchmarks(self) -> None: |
| 113 | """Aggregate, calculate, and report benchmarks for this run.""" |
no test coverage detected