예제 #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)
예제 #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)
예제 #3
0
파일: lint.py 프로젝트: GGSN/geocamUtilWeb
 def handle(self, *args, **options):
     runpylint(args)
     runpep8(args)
     rungjslint(args)
예제 #4
0
 def handle(self, *args, **options):
     runpylint(args)
     runpep8(args)
     rungjslint(args)