fab: Add lint/autolint tasks for running flake8 on everything
This commit is contained in:
parent
404fb00235
commit
f433a77ec5
11
fabfile.py
vendored
11
fabfile.py
vendored
@ -35,6 +35,17 @@ def autocoverage(path=None):
|
|||||||
auto(coverage, path=path)
|
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):
|
def auto(task, *args, **kwargs):
|
||||||
while True:
|
while True:
|
||||||
local('clear')
|
local('clear')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user