Skip to content

Commit

Permalink
New --no-flake8 flag for run_tests.py
Browse files Browse the repository at this point in the history
Makes it possible to skip the flake8 run. Speeds up the dev workflow
when repeatedly running a single failing test.
  • Loading branch information
Valloric committed Feb 3, 2016
1 parent 0dccb02 commit 5887739
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def ParseArguments():
'Windows (default: python interpreter architecture).' )
parser.add_argument( '--coverage', action = 'store_true',
help = 'Enable coverage report (requires coverage pkg)' )
parser.add_argument( '--no-flake8', action = 'store_true',
help = 'Disable flake8 run.' )

parsed_args, nosetests_args = parser.parse_known_args()

Expand Down Expand Up @@ -104,7 +106,8 @@ def NoseTests( parsed_args, extra_nosetests_args ):

def Main():
parsed_args, nosetests_args = ParseArguments()
RunFlake8()
if not parsed_args.no_flake8:
RunFlake8()
BuildYcmdLibs( parsed_args )
NoseTests( parsed_args, nosetests_args )

Expand Down

0 comments on commit 5887739

Please sign in to comment.