test_code_style.py
Go to the documentation of this file.
00001 import flake8.engine
00002 import os
00003 
00004 
00005 def test_flake8():
00006     """Test source code for pyFlakes and PEP8 conformance"""
00007     flake8style = flake8.engine.StyleGuide(max_line_length=240)
00008     report = flake8style.options.report
00009     report.start()
00010     this_dir = os.path.dirname(os.path.abspath(__file__))
00011     flake8style.input_dir(os.path.join(this_dir, '..', 'src/rqt_graphprofiler'))
00012     report.stop()
00013     assert report.total_errors == 0, \
00014         ("Found '{0}' code style errors (and warnings)."
00015          .format(report.total_errors))


rqt_graphprofiler
Author(s): Dan Brooks
autogenerated on Thu Jun 6 2019 20:29:31