diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-03-15 08:42:30 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-03-15 08:42:30 -0500 |
| commit | 6eb3dee1df547b15a257ba1a666cd04df6928298 (patch) | |
| tree | 3300dc8c2eebce09d9836b44388d581505c0f9b7 /flake8 | |
| parent | 189faf68bac204625d6e0b3f3d3ff74ba924dc84 (diff) | |
| download | flake8-6eb3dee1df547b15a257ba1a666cd04df6928298.tar.gz | |
Reorganize our Application flow
Diffstat (limited to 'flake8')
| -rw-r--r-- | flake8/main/cli.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/flake8/main/cli.py b/flake8/main/cli.py index 0dfd19a..06299ec 100644 --- a/flake8/main/cli.py +++ b/flake8/main/cli.py @@ -255,6 +255,18 @@ class Application(object): checker_plugins=self.check_plugins, ) + def run_checks(self): + # type: () -> NoneType + """Run the actual checks with the FileChecker Manager.""" + self.file_checker_manager.start() + self.file_checker_manager.run() + self.file_checker_manager.stop() + + def report_errors(self): + # type: () -> NoneType + """Report all the errors found by flake8 3.0.""" + self.file_checker_manager.report() + def run(self, argv=None): # type: (Union[NoneType, List[str]]) -> NoneType """Run our application.""" @@ -265,9 +277,8 @@ class Application(object): self.make_notifier() self.make_guide() self.make_file_checker_manager() - self.file_checker_manager.start() - self.file_checker_manager.run() - self.file_checker_manager.stop() + self.run_checks() + self.report_errors() def main(argv=None): |
