Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang committed Feb 26, 2024
1 parent 01276dd commit 4fa80e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lean_dojo/data_extraction/lean.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ def __post_init__(self) -> None:
lean_version = get_lean4_commit_from_config(config)
v = get_lean4_version_from_config(config["content"])
if not is_supported_version(v):
logger.warning(f"{self} relies on an unsupported Lean version: {lean_version}")
logger.warning(
f"{self} relies on an unsupported Lean version: {lean_version}"
)
info_cache.lean_version[(self.url, self.commit)] = lean_version
object.__setattr__(self, "lean_version", lean_version)

Expand Down
6 changes: 5 additions & 1 deletion src/lean_dojo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ def _from_lean_path(root_dir: Path, path: Path, repo, ext: str) -> Path:
p = path.relative_to(LEAN4_PACKAGES_DIR).with_suffix(ext)
repo_name = p.parts[0]
return (
LEAN4_PACKAGES_DIR / repo_name / LEAN4_BUILD_DIR / "ir" / p.relative_to(repo_name)
LEAN4_PACKAGES_DIR
/ repo_name
/ LEAN4_BUILD_DIR
/ "ir"
/ p.relative_to(repo_name)
)
else:
# E.g., "Mathlib/LinearAlgebra/Basics.lean"
Expand Down

0 comments on commit 4fa80e5

Please sign in to comment.