Auto merge of #2769 - micbou:run-flake8-and-nose-as-modules, r=bstaletic
[READY] Run flake8 and nose as modules See PR https://github.com/Valloric/ycmd/pull/829. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2769) <!-- Reviewable:end -->
This commit is contained in:
commit
b27b369880
@ -38,7 +38,9 @@ import argparse
|
||||
def RunFlake8():
|
||||
print( 'Running flake8' )
|
||||
subprocess.check_call( [
|
||||
'flake8',
|
||||
sys.executable,
|
||||
# __main__ is required on Python 2.6.
|
||||
'-m', 'flake8.__main__',
|
||||
p.join( DIR_OF_THIS_SCRIPT, 'python' )
|
||||
] )
|
||||
|
||||
@ -84,7 +86,9 @@ def NoseTests( parsed_args, extra_nosetests_args ):
|
||||
else:
|
||||
nosetests_args.append( p.join( DIR_OF_THIS_SCRIPT, 'python' ) )
|
||||
|
||||
subprocess.check_call( [ 'nosetests' ] + nosetests_args )
|
||||
subprocess.check_call( [ sys.executable,
|
||||
# __main__ is required on Python 2.6.
|
||||
'-m', 'nose.__main__' ] + nosetests_args )
|
||||
|
||||
|
||||
def Main():
|
||||
|
Loading…
x
Reference in New Issue
Block a user