Skip to content

Audit fixes, ruff in CI, release 0.1.1 - #3

Merged
MichaelD-42 merged 6 commits into
mainfrom
fix/audit-findings
Nov 7, 2026
Merged

MichaelD-42 merged 6 commits into
mainfrom
fix/audit-findings

Conversation

@MichaelD-42

Copy link
Copy Markdown
Owner

Fixes the six findings from the repo audit, sets up ruff, and releases 0.1.1.

Audit fixes

  1. Release 0.1.1: plugin and package bumped so installed plugins pick up the changes since 0.1.0; the template pins sysml2kit to v0.1.1 (tag pushed once this is green).
  2. Model in a subdirectory: the SessionStart check says to start Claude there, since the MCP server is started on model relative to the session.
  3. Diagrams ending in the same name (A::system B::system): make render fails instead of one SVG overwriting the other.
  4. Use case subjects are grouped by name and type: vehicle : Car / vehicle : Truck get separate diagrams; untyped same-name subjects still merge, so the example's usecases-vehicle.svg is unchanged.
  5. Model file names with spaces stop make with the file to rename instead of "No rule to make target".
  6. Old sysml binary: the authoring skill says to run make tools when find is missing.

Ruff: CI runs ruff check and ruff format --check (0.17.4, default rules). Findings fixed; one was a real bug in a test: the lint-hook event was hand-built JSON, broken by a path containing a quote. The rest is ruff format.

Checked locally: unit tests (21), ruff clean, tests/acceptance.py 19/19 including the two new mutations.

🤖 Generated with Claude Code

MichaelD-42 and others added 6 commits November 7, 2026 18:06
… guards

- check_tools: when the model is only in a subdirectory, say to start Claude
  there; the MCP server is started on `model` relative to the session.
- use case diagrams group subjects by name and type, so `vehicle : Car` and
  `vehicle : Truck` no longer merge; untyped same-name subjects still do.
- render fails when two DIAGRAMS entries end in the same name instead of
  one overwriting the other's SVG.
- a model file name with a space stops make with what to rename, instead of
  "No rule to make target".
- sysml-author: a `sysml` without find/relations wants `make tools`.

Tests: unit tests for the subdir hint and the subject split; acceptance
mutations for both make guards.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI's unit job runs `ruff check` and `ruff format --check`, pinned to 0.17.4,
with ruff's default rules. Fixes: explicit `check=False` where the exit code
is read by hand, `re.DOTALL`/`re.MULTILINE` over aliases, unused noqa, a
ClassVar fixture, and the lint-hook test event built with json.dumps (a path
with a quote broke the hand-built JSON). The rest is `ruff format`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bump the plugin and package to 0.1.1 so installed plugins pick up the
changes since 0.1.0, and pin new projects' sysml2kit to the v0.1.1 tag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment pattern matched `//` first and blanked only the note's first
line, so a requirement commented out with a multi-line note became the
source location over the live one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A release bumps three places; the test fails when one is left behind.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An empty SYSML_REV used to surface later as a cargo error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MichaelD-42
MichaelD-42 merged commit d148add into main Nov 7, 2026
5 checks passed
@MichaelD-42
MichaelD-42 deleted the fix/audit-findings branch November 7, 2026 17:10
MichaelD-42 added a commit that referenced this pull request Nov 29, 2026
Audit fixes, ruff in CI, release 0.1.1
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