def lessc(): """Runs LESS CSS linter.""" files = util.find('*.less', './src/static/css') if files: invoke.run(' '.join(['lessc', '--lint'] + files), warn=True) else: print 'No LESS files to lint.'
def pylint(): """Runs pylint across Python in the application.""" files = util.find('*.py', exclude_paths=[ '*/thirdparty/*', '*/build/*', '*/dist/*' ]) invoke.run(' '.join([ 'pylint', '--msg-template=\"{C}:{line:3d},{column:2d}: {msg} ({symbol}) {path}\"', '--rcfile=wlib/pylint.rcfile' ] + files), warn=True)