def style():
"""Use flake8 to check Python style, PEP8, and McCabe complexity.
See http://pypi.python.org/pypi/flake8/
.. note::
* Files with the following header are skipped::
# flake8: noqa
* Lines that end with a ``# NOQA`` comment will not issue a warning.
"""
with lcd(_relative_to_fabfile('rq_dashboard')):
local(
'flake8 '
'--exclude=".svn,CVS,.bzr,.hg,.git,__pycache__,._*" '
'--max-complexity=9 .')
评论列表
文章目录