style: ruff cleanup — split multi-import lines + remove unused imports #22

Merged
agent-dev-a merged 1 commits from fix/ruff-e401-f401-split-imports into main 2026-05-26 00:15:28 +00:00
7 changed files with 15 additions and 7 deletions
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
"""Validate a Molecule AI org template repo."""
import os, sys, yaml
import os
import sys
import yaml
# Support custom YAML tags used by org templates. Two shapes:
#
+3 -1
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
"""Validate a Molecule AI plugin repo."""
import os, sys, yaml
import os
import sys
import yaml
errors = []
-1
View File
@@ -17,7 +17,6 @@ import tempfile
import textwrap
from pathlib import Path
import pytest
SCRIPT = Path(__file__).resolve().parent.parent / "bin" / "runners-restart-safe.sh"
@@ -17,7 +17,6 @@ test via _reset_validator_state().
from __future__ import annotations
import importlib.util
import os
from pathlib import Path
import pytest
+3 -1
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
"""Validate a Molecule AI org template repo."""
import os, sys, yaml
import os
import sys
import yaml
# Support !include and other custom YAML tags used by org templates.
# These resolve at platform load time, not at validation time — we just
+3 -1
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
"""Validate a Molecule AI plugin repo."""
import os, sys, yaml
import os
import sys
import yaml
errors = []
+3 -1
View File
@@ -6,7 +6,9 @@ Dockerfile + config.yaml + requirements.txt against the canonical
contract. Replaces the existing soft-warnings-only validator at
molecule-ci/scripts/validate-workspace-template.py.
"""
import os, re, sys
import os
import re
import sys
import yaml
ERRORS: list[str] = []