sqlmesh
sqlmesh copied to clipboard
feat: add fix option to lint command
Summary
- add
--fixflag tosqlmesh lintto 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.pypytest 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