File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010import build_utils
1111
12- def _ismod (f ):
13- """Return True if f is a Python module but not a test module."""
14- return f .endswith (".py" ) and not f .endswith ("_test.py" )
15-
1612
1713STEP = collections .namedtuple ("STEP" , ["name" , "command" ])
1814
19- PYTYPE_COMMAND = os .path .join ("out" , "bin" , "pytype" )
20- PYC_DIR = os .path .join (build_utils .PYTYPE_SRC_ROOT , "pytype" , "pyc" )
21- PYC_FILES = [os .path .join (PYC_DIR , f ) for f in os .listdir (PYC_DIR ) if _ismod (f )]
22- TYPECHECK_FILES = [
23- "pytype/compat.py" , "pytype/debug.py" , "pytype/utils.py" ] + PYC_FILES
24-
2515
2616def _begin_step (s ):
2717 print ("" )
@@ -48,15 +38,15 @@ def _run_steps(steps):
4838 _report_failure (s )
4939 sys .exit (1 )
5040 _end_step (s )
51-
41+
5242
5343def main ():
5444 s1 = STEP (name = "Build" ,
5545 command = ["python" , build_utils .build_script ("build.py" )])
5646 s2 = STEP (name = "Run Tests" ,
5747 command = ["python" , build_utils .build_script ("run_tests.py" ), "-f" ])
5848 s3 = STEP (name = "Type Check" ,
59- command = [PYTYPE_COMMAND ] + TYPECHECK_FILES )
49+ command = [os . path . join ( "out" , "bin" , "pytype" )] )
6050 _run_steps ([s1 , s2 , s3 ])
6151 print ("\n *** All build steps completed successfully! ***\n " )
6252
Original file line number Diff line number Diff line change 11[pytype]
22python_version = 2.7
3+ inputs =
4+ pytype/compat.py
5+ pytype/debug.py
6+ pytype/pyc/
7+ pytype/utils.py
8+ exclude =
9+ **/*_test.py
You can’t perform that action at this time.
0 commit comments