Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor updates #121

Merged
merged 3 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = [

[project]
name = "lean-dojo"
version = "1.4.4"
version = "1.4.5rc"
authors = [
{ name="Kaiyu Yang", email="[email protected]" },
]
Expand Down
6 changes: 3 additions & 3 deletions src/lean_dojo/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

load_dotenv()

__version__ = "1.4.4"
__version__ = "1.4.5rc"

logger.remove()
if "VERBOSE" in os.environ or "DEBUG" in os.environ:
Expand Down Expand Up @@ -98,11 +98,11 @@
"""

TACTIC_CPU_LIMIT = int(os.getenv("TACTIC_CPU_LIMIT", 1))
"""Number of CPUs for executing tactics when interacting with Lean.
"""Number of CPUs for executing tactics when interacting with Lean (only useful when running within Docker).
"""

TACTIC_MEMORY_LIMIT = os.getenv("TACTIC_MEMORY_LIMIT", "32g")
"""Maximum memory when interacting with Lean.
"""Maximum memory when interacting with Lean (only useful when running within Docker).
"""

CONTAINER = os.getenv("CONTAINER", "native")
Expand Down
8 changes: 0 additions & 8 deletions src/lean_dojo/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,6 @@ def run_interactive(
work_dir: Optional[str] = None,
) -> subprocess.Popen:
assert as_current_user, "NativeContainer can only run as the current user."
if cpu_limit is not None:
logger.warning(
f"Disregarding `cpu_limit = {cpu_limit} since NativeContainer does not support CPU limit.`"
)
if memory_limit is not None:
logger.warning(
f"Disregarding `memory_limit = {memory_limit}` since NativeContainer does not support memory limit."
)

self._mount_files(mounts)
self.mounts = mounts
Expand Down
Loading