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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user