Skip to content

Commit 2932ea0

Browse files
deepsource-autofix[bot]1minds3t
authored andcommitted
refactor: remove commented out code
It is recommended to remove any commented code in your codebase.
1 parent 175f6b9 commit 2932ea0

6 files changed

Lines changed: 0 additions & 12 deletions

File tree

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Configuration file for the Sphinx documentation builder.
21

32
# -- Project information -----------------------------------------------------
43
project = "omnipkg"
@@ -21,8 +20,6 @@
2120
# -- Options for HTML output -------------------------------------------------
2221
# Modern, beautiful theme - pick one:
2322
html_theme = "furo" # Recommended - clean, modern, mobile-friendly
24-
# html_theme = 'sphinx_rtd_theme' # Alternative - ReadTheDocs style
25-
# html_theme = 'pydata_sphinx_theme' # Alternative - PyData style
2623

2724
html_static_path = ["_static"]
2825

src/omnipkg/commands/run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,6 @@ def _auto_inject_stdlibs(code: str) -> str:
19721972
if re.search(usage_pattern, code):
19731973
# Check if the specific class/function is already imported
19741974
import_patterns = [
1975-
# from pathlib import Path
19761975
rf"^\s*from\s+{lib}\s+import\s+.*\b{indicator}\b",
19771976
# import pathlib (then use pathlib.Path)
19781977
rf"^\s*import\s+{lib}\b",

src/omnipkg/core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8337,12 +8337,8 @@ def _synchronize_knowledge_base_with_reality(
83378337
safe_print(
83388338
_(' -> 👻 Found {} ghost instance(s) in the KB that no longer exist on disk.').format(len(ghost_paths))
83398339
)
8340-
# safe_print(" -> DEBUG: Analyzing first 5 ghosts to be deleted...")
83418340
for i, path in enumerate(list(ghost_paths)[:5]):
83428341
key = kb_path_map.get(path, "(unknown key)")
8343-
# safe_print(f" - GHOST {i+1}:")
8344-
# safe_print(f" Path in KB: {path}")
8345-
# safe_print(f" Key in KB: {key}")
83468342

83478343
# --- Healing Actions ---
83488344
if instances_to_rebuild:

src/omnipkg/integration/reproducible.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,6 @@ def _dict_to_toml(data: dict) -> str:
16781678

16791679
lines: list[str] = []
16801680

1681-
# [meta]
16821681
lines.append("[meta]")
16831682
for k, v in data["meta"].items():
16841683
if isinstance(v, bool):

src/omnipkg/isolation/worker_daemon.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import sys
1515
import tempfile
1616
import struct # <--- ADDED for control block packing
17-
# import psutil # Made lazy
1817
import threading
1918
import time
2019
from collections import defaultdict
@@ -5269,7 +5268,6 @@ def receive_tensor(self, meta: dict) -> "torch.Tensor":
52695268
return self.receive(meta)
52705269

52715270

5272-
# import torch
52735271

52745272

52755273
class IPCMode(Enum):

src/omnipkg/utils/flask_port_finder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ def test_1_basic_port_allocation(self):
435435
def test_2_concurrent_allocation(self):
436436
def allocate_port(thread_id):
437437
port = find_free_port(reserve=True)
438-
# safe_print(f" Thread {thread_id}: Allocated port {port}")
439438
time.sleep(0.05)
440439
release_port(port)
441440
return port

0 commit comments

Comments
 (0)