simvx.ide.lint.runner¶
Linting and formatting subprocess runner using ruff.
Module Contents¶
Classes¶
Runs ruff check / ruff format and feeds diagnostics into IDEState. |
Data¶
API¶
- simvx.ide.lint.runner.log¶
‘getLogger(…)’
- class simvx.ide.lint.runner.LintRunner(state: simvx.ide.state.IDEState, config: simvx.ide.config.IDEConfig)¶
Runs ruff check / ruff format and feeds diagnostics into IDEState.
Initialization
- lint_file(path: str) list[simvx.ide.state.Diagnostic]¶
Run ruff check on path, parse JSON output, update state diagnostics.
- format_file(path: str) bool¶
Run ruff format on path. Returns True on success.
- lint_on_save(path: str)¶
Called after a file is saved – runs lint and updates diagnostics.
- format_on_save(path: str)¶
Called before/after save if format_on_save is enabled.