mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
mypy: Remove logic for linecoverage report.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user