Skip to content

fix(py-dsl): satisfy ruff format + lint#45

Open
markovejnovic wants to merge 2 commits into
mainfrom
fix/ci-lint-format
Open

fix(py-dsl): satisfy ruff format + lint#45
markovejnovic wants to merge 2 commits into
mainfrom
fix/ci-lint-format

Conversation

@markovejnovic
Copy link
Copy Markdown
Contributor

What

Fixes the genuine harmont-py DSL lint/format failures surfaced when this repo's own CI pipeline ran end-to-end on the Harmont cloud (hm run):

  • ruff formatharmont/_bun.py and harmont/_toolchain.py had multi-line string concatenations that fit on a single line; reformatted.
  • ruff check (E402)tests/test_bun.py imported pytest and harmont mid-file (after the first batch of tests). Hoisted both into the module's import block.

Verification (local, the exact CI commands)

uv run ruff format --check .   # 83 files already formatted
uv run ruff check .            # All checks passed!
uv run ty check harmont        # All checks passed!
uv run pytest -q               # 404 passed, 1 skipped

cargo fmt --check is also clean (unaffected — Python-only change).

Context

No behavior change — formatting + import placement only. These were the only real (non-infra) failures in the cloud CI run; the rest of the chain (toolchain install, build, snapshot lineage) is now green on the Harmont side.

CI (hm run on Harmont cloud) flagged real failures in the harmont-py DSL:
- ruff format: _bun.py and _toolchain.py had multi-line string concatenations
  that fit on one line; reformat them.
- ruff check (E402): tests/test_bun.py imported pytest + harmont mid-file
  (after the first test batch). Hoist both to the module's import block.

ruff format --check, ruff check, ty, and pytest (404 passed) all green.
examples/bun exists on disk but was missing from the example: matrix in
examples.yml, so the validate-matrix guard failed. Add it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant