Browse Source

Add --no-flake8 to YCM run_tests.py

Ben Jackson 9 years ago
parent
commit
81db1c0b23
1 changed files with 6 additions and 1 deletions
  1. 6 1
      run_tests.py

+ 6 - 1
run_tests.py

@@ -47,6 +47,8 @@ def ParseArguments():
   parser = argparse.ArgumentParser()
   parser.add_argument( '--skip-build', action = 'store_true',
                        help = 'Do not build ycmd before testing.' )
+  parser.add_argument( '--no-flake8', action = 'store_true',
+                       help = 'Do not run flake8' )
 
   return parser.parse_known_args()
 
@@ -70,7 +72,10 @@ def NoseTests( extra_args ):
 
 def Main():
   ( parsed_args, extra_args ) = ParseArguments()
-  RunFlake8()
+
+  if not parsed_args.no_flake8:
+    RunFlake8()
+
   BuildYcmdLibs( parsed_args )
   NoseTests( extra_args )