Skip to content

Commit

Permalink
Fix path in check_output
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Dec 19, 2024
1 parent 6a6a6e1 commit 0d5d0b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/check_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ def run_checks(path: Path) -> None:
CheckError -- If snapshot is not equal to current output.
"""
logger = Config.logger
logger.info(f"Checking {path.absolute().relative_to(Path.cwd())} ...")
relative_path = path.relative_to(Path.cwd())
relative_path = path.absolute().relative_to(Path.cwd())
logger.info(f"Checking {relative_path} ...")
logger.debug(f"Running ruff for {relative_path} ...")
run_ruff(path)
logger.debug(f"Running mypy for {relative_path} ...")
Expand All @@ -423,7 +423,7 @@ def run_checks(path: Path) -> None:
run_call(path)
logger.debug(f"Running import for {relative_path} ...")
run_import(path)
logger.info(f"Finished {path.absolute().relative_to(Path.cwd())} ...")
logger.info(f"Finished {relative_path} ...")


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

0 comments on commit 0d5d0b2

Please sign in to comment.