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

Method run_checks

src/flake8/main/application.py:92–110  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 2

_runMethod · 0.95
check_filesMethod · 0.45

Calls 3

startMethod · 0.45
runMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected