diff --git a/tools/jsonToRst.py b/tools/jsonToRst.py index 4fc3d4cc..b6eca323 100755 --- a/tools/jsonToRst.py +++ b/tools/jsonToRst.py @@ -31,6 +31,7 @@ def printHelpArrays(input): return output[0:-2] + wrapper = textwrap.TextWrapper(width=79, subsequent_indent=' ') inFileName = "NONE" diff --git a/tox.ini b/tox.ini index 5bbacbd7..333786e4 100644 --- a/tox.ini +++ b/tox.ini @@ -23,6 +23,7 @@ commands= [testenv:pep8] basepython = python2.7 deps = + flake8 {[testenv]deps} commands= bash tools/flake8wrap.sh diff --git a/working_materials/find_additional_properties.py b/working_materials/find_additional_properties.py old mode 100644 new mode 100755 index 954d0622..6d9e89c3 --- a/working_materials/find_additional_properties.py +++ b/working_materials/find_additional_properties.py @@ -45,7 +45,7 @@ def show_outcome(stream, test): global RESULTS status = test['status'] if status == 'exists': - returnmime + return if status == 'fail': for raw_name in test['details']: name = raw_name.split(':')[0] @@ -73,6 +73,7 @@ def show_outcome(stream, test): elif status == 'skip': SKIPS.append(test) + stream = subunit.ByteStreamToStreamResult( sys.stdin, non_subunit_name='stdout') outcome = testtools.StreamToDict( diff --git a/working_materials/tabulate_scores.py b/working_materials/tabulate_scores.py index cd3584ef..1337b00f 100755 --- a/working_materials/tabulate_scores.py +++ b/working_materials/tabulate_scores.py @@ -26,6 +26,7 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter): pass + # Set up command line arguments. parser = argparse.ArgumentParser( description=textwrap.dedent("""\