From 11500f337d8565035b2179301957f7dfac0f8de6 Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Thu, 7 Feb 2019 01:19:19 +0300 Subject: [PATCH] try ci fix --- scripts/typecheck_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/typecheck_tests.py b/scripts/typecheck_tests.py index eaa5862..7c10ddb 100644 --- a/scripts/typecheck_tests.py +++ b/scripts/typecheck_tests.py @@ -529,7 +529,10 @@ def is_ignored(line: str, test_folder_name: str) -> bool: def replace_with_clickable_location(error: str, abs_test_folder: Path) -> str: raw_path, _, error_line = error.partition(': ') fname, _,line_number = raw_path.partition(':') + + print(f'project directory is {PROJECT_DIRECTORY}') path = abs_test_folder.joinpath(fname).relative_to(PROJECT_DIRECTORY) + clickable_location = f'./{path}:{line_number or 1}' return error.replace(raw_path, clickable_location)