fab: Add lint/autolint tasks for running flake8 on everything

This commit is contained in:
Stein Magnus Jodal 2013-08-09 14:51:18 +02:00
parent 404fb00235
commit f433a77ec5

11
fabfile.py vendored
View File

@ -35,6 +35,17 @@ def autocoverage(path=None):
auto(coverage, path=path)
@task
def lint(path=None):
path = path or '.'
local('flake8 $(find %s -iname "*.py")' % path)
@task
def autolint(path=None):
auto(lint, path=path)
def auto(task, *args, **kwargs):
while True:
local('clear')