Skip to content

Commit 0d5d0b2

Browse files
committed
Fix path in check_output
1 parent 6a6a6e1 commit 0d5d0b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ def run_checks(path: Path) -> None:
409409
CheckError -- If snapshot is not equal to current output.
410410
"""
411411
logger = Config.logger
412-
logger.info(f"Checking {path.absolute().relative_to(Path.cwd())} ...")
413-
relative_path = path.relative_to(Path.cwd())
412+
relative_path = path.absolute().relative_to(Path.cwd())
413+
logger.info(f"Checking {relative_path} ...")
414414
logger.debug(f"Running ruff for {relative_path} ...")
415415
run_ruff(path)
416416
logger.debug(f"Running mypy for {relative_path} ...")
@@ -423,7 +423,7 @@ def run_checks(path: Path) -> None:
423423
run_call(path)
424424
logger.debug(f"Running import for {relative_path} ...")
425425
run_import(path)
426-
logger.info(f"Finished {path.absolute().relative_to(Path.cwd())} ...")
426+
logger.info(f"Finished {relative_path} ...")
427427

428428

429429
def get_package_paths() -> tuple[Path, ...]:

0 commit comments

Comments
 (0)