def handle(self, *args, **options): verbosity = int(options.get('verbosity', False)) returnCodes = [] returnCodes.append(runpylint(args, verbosity=verbosity)) returnCodes.append(runpep8(args, verbosity=verbosity)) returnCodes.append(rungjslint(args, verbosity=verbosity)) errorsFound = not all([c == 0 for c in returnCodes]) if verbosity > 0: if errorsFound: print '### manage.py lint done, errors found' else: print '### manage.py lint done, no errors found' sys.exit(errorsFound)
def handle(self, *args, **options): runpylint(args) runpep8(args) rungjslint(args)