aboutsummaryrefslogtreecommitdiffstats
path: root/run-tests.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-11-20 16:07:03 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2014-11-20 16:07:03 -0500
commit8f66a94eab1389d97041944ed24afd2bf7c4389c (patch)
tree10b53664076650be951468cbbb163f3d637e5891 /run-tests.py
parent0c2143819ef7de53be52f7a4d47e027ff194a9b4 (diff)
downloadmarkdown-8f66a94eab1389d97041944ed24afd2bf7c4389c.tar.gz
markdown-8f66a94eab1389d97041944ed24afd2bf7c4389c.tar.bz2
markdown-8f66a94eab1389d97041944ed24afd2bf7c4389c.zip
Flake8 cleanup (mostly whitespace).
Got all but a couple files in the tests (ran out of time today). Apparently I have been using some bad form for years (although a few things seemed to look better before the update). Anyway, conformant now.
Diffstat (limited to 'run-tests.py')
-rwxr-xr-xrun-tests.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/run-tests.py b/run-tests.py
index 2727a20..5748953 100755
--- a/run-tests.py
+++ b/run-tests.py
@@ -1,16 +1,22 @@
#!/usr/bin/env python
import tests
-import os, sys
+import os
+import sys
if len(sys.argv) > 1 and sys.argv[1] == "update":
if len(sys.argv) > 2:
config = tests.get_config(os.path.dirname(sys.argv[2]))
root, ext = os.path.splitext(sys.argv[2])
- if ext == config.get(config.get_section(os.path.basename(root)), 'input_ext'):
+ if ext == config.get(
+ config.get_section(os.path.basename(root)), 'input_ext'
+ ):
tests.generate(root, config)
else:
- print(sys.argv[2], 'does not have a valid file extension. Check config.')
+ print(
+ sys.argv[2],
+ 'does not have a valid file extension. Check config.'
+ )
else:
tests.generate_all()
else: