jellycell.cli.commands.lint¶
jellycell lint — check project against lint rules.
Module Contents¶
Classes¶
JSON shape for a lint violation. Part of the |
|
JSON schema for |
Functions¶
Run the lint rule suite; optionally apply auto-fixes with |
API¶
- class jellycell.cli.commands.lint.LintViolation(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON shape for a lint violation. Part of the
lint§10.1 contract.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class jellycell.cli.commands.lint.LintReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON schema for
jellycell lint --json. Spec §10.1 contract.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- violations: list[jellycell.cli.commands.lint.LintViolation]¶
None
- jellycell.cli.commands.lint.lint(ctx: typer.Context, path: pathlib.Path | None = typer.Argument(None, help='Project root. Defaults to discovery from cwd.'), fix: bool = typer.Option(False, '--fix', help='Apply auto-fixes to fixable violations.')) None¶
Run the lint rule suite; optionally apply auto-fixes with
--fix.