Skip to content

Commit

Permalink
actually test the scripts which don't end in .py
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 9, 2017
1 parent 9bb505c commit 37fadce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ def test_flake8():
style_guide = get_style_guide(argv)
base_path = os.path.join(os.path.dirname(__file__), '..')
paths = [
os.path.join(base_path, 'scripts'),
os.path.join(base_path, 'setup.py'),
os.path.join(base_path, 'test'),
os.path.join(base_path, 'vcstool'),
]
scripts_path = os.path.join(base_path, 'scripts')
for script in os.listdir(scripts_path):
if script.startswith('.'):
continue
paths.append(os.path.join(scripts_path, script))
report = style_guide.check_files(paths)
assert report.total_errors == 0, \
'Found %d code style warnings' % report.total_errors
Expand Down

0 comments on commit 37fadce

Please sign in to comment.