Skip to content

Official Codebase of 3DCodeVerse

Python

lint: ruff selects W — the one W605 (a "\ " in scene_placement's docstring) printed a SyntaxWarning on every import since 2026-08-26

gaoypengb49a44167f44
diff --git a/harness/codeverse/spatial/scene_placement.py b/harness/codeverse/spatial/scene_placement.py
index 36c99869..9b618377 100644
--- a/harness/codeverse/spatial/scene_placement.py
+++ b/harness/codeverse/spatial/scene_placement.py
@@ -13,7 +13,7 @@ sunken was left to the VLM (defect −0.06).
Numbers come from ``runtime_js/lib/host_placement.mjs`` (per placed asset: foot-column
gap to the surface beneath, burial depth, water, contacts; 3-D interpenetration pairs),
carried in the probe census under ``placement``; this module turns them into
-``GateFinding``\ s whose messages contain the cap words and whose ``fix_hint`` names
+``GateFinding`` rows whose messages contain the cap words and whose ``fix_hint`` names
the move ("lower X by 0.23 m onto Terrain"). Sunk is judged relative to the asset's
height and its name words because the harness's own starter scene buries rocks
20–50 % of their height, digs a pond basin 1.4 m under the terrain and drives jetty
diff --git a/harness/pyproject.toml b/harness/pyproject.toml
index 3c4b1a9a..68bb844f 100644
--- a/harness/pyproject.toml
+++ b/harness/pyproject.toml
@@ -80,7 +80,7 @@ line-length = 100
target-version = "py313" # == requires-python: one fixed version (owner, 2026-08-26)
[tool.ruff.lint]
-select = ["E", "F", "I", "B", "UP", "SIM"]
+select = ["E", "W", "F", "I", "B", "UP", "SIM"]
ignore = ["E501"]
[tool.pytest.ini_options]