Example #1
0
    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)
Example #2
0
    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)
Example #3
0
 def handle(self, *args, **options):
     runpylint(args)
     runpep8(args)
     rungjslint(args)
Example #4
0
 def handle(self, *args, **options):
     runpylint(args)
     runpep8(args)
     rungjslint(args)