@@ -17,25 +17,25 @@ def dumpconfig():
"""Show config."""
pprint.pprint(current_app.config)
def checkers(checker):
def get_files(root, files):
for f in files:
if os.path.splitext(f)[1] == '.py':
yield os.path.join(root, f)
for root, dirs, files in os.walk('./'):
for root, dirs, files in os.walk('../'):
for f in get_files(root, files):
subprocess.call([checker, f])
@manager.command
def pep8():
"""Check all py files for pep8 compat."""
checkers('pep8')
Status change: