Merge branch 'master' into 'master'

Fixes #199: Report errors when run via setuptools.

*Description of changes*

*Related to:*  (Add bug number here)

See merge request !107
This commit is contained in:
Ian Cordasco 2016-07-29 17:49:15 +00:00
commit 87c488b9cc

View file

@ -89,4 +89,9 @@ class Flake8(setuptools.Command):
def run(self):
"""Run the Flake8 application."""
self.flake8.run_checks(list(self.distribution_files()))
self.flake8.formatter.start()
self.flake8.report_errors()
self.flake8.report_statistics()
self.flake8.report_benchmarks()
self.flake8.formatter.stop()
self.flake8.exit()