mypy: Remove logic for linecoverage report.

This commit is contained in:
Tim Abbott
2018-06-01 10:21:38 -07:00
parent ceae1a1c5f
commit 95f1f1d363
3 changed files with 1 additions and 17 deletions

View File

@@ -35,8 +35,6 @@ parser.add_argument('-a', '--all', action='store_true',
help="check all files, bypassing the default exclude list")
parser.add_argument('--force', action="store_true",
help="run tests despite possible provisioning problems")
parser.add_argument('--linecoverage-report', action='store_true',
help="emit a coverage report under var/")
args = parser.parse_args()
if not args.force:
@@ -77,9 +75,6 @@ if not python_files and not pyi_files:
sys.exit(0)
extra_args = []
if args.linecoverage_report:
extra_args.append("--linecoverage-report")
extra_args.append("var/linecoverage-report")
if args.quick:
extra_args.append("--quick")
@@ -89,12 +84,4 @@ if args.daemon:
else:
rc = subprocess.call([mypy_command] + mypy_args)
if args.linecoverage_report:
# Move the coverage report to where codecov will look for it.
try:
os.rename('var/linecoverage-report/coverage.txt', 'var/.coverage')
except OSError:
# maybe mypy crashed; exit with its error code
pass
sys.exit(rc)