Fix ltx-trainer ruff target-version and a hidden lint finding

The [tool.ruff] target-version was accidentally set to the package version
"1.1.7", which made ruff fail to parse the whole package's pyproject and
silently skip linting. Set it to "py310" to match requires-python >=3.10.

With ruff working again it flagged a too-many-branches finding in the Phase 3
SCAIL wiring: extract the driving + mask-channel loops from _process_modality
into a new _apply_scail_conditions helper. Behavior is unchanged (Phase 3 CPU
verification still passes); full `ruff check .` on the trainer now passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 21:00:45 +08:00
parent 06c0870bbb
commit a598f89d99
2 changed files with 63 additions and 31 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ build-backend = "hatchling.build"
[tool.ruff]
target-version = "1.1.7"
target-version = "py310"
line-length = 120
# Restrict isort first-party detection to src/ so stray dirs (e.g. wandb/ run output)
# next to pyproject.toml don't get classified as first-party packages. See ruff#10519.