sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

feat: add fix option to lint command

Open benfdking opened this issue 4 months ago • 0 comments

Summary

  • add --fix flag to sqlmesh lint to apply automatic fixes and fail on remaining errors
  • implement fix application for lint violations
  • document new lint fix option and add tests

Testing

  • pre-commit run --files docs/examples/sqlmesh_cli_crash_course.md docs/guides/linter.md docs/reference/cli.md sqlmesh/cli/main.py sqlmesh/core/context.py tests/cli/test_cli.py
  • pytest tests/cli/test_cli.py::test_lint_fix tests/cli/test_cli.py::test_lint_fix_unfixable_error -q

https://chatgpt.com/codex/tasks/task_e_6899c89c18fc8330a9329492edcfeaff

benfdking avatar Aug 11 '25 11:08 benfdking