A pre-commit hook for Sqruff.
To run Sqruff's linter and formatter via pre-commit, add the following to your .pre-commit-config.yaml
:
repos:
- repo: https://github.com/concur1/sqruff-pre-commit
# Ruff version.
rev: v0.17.0
hooks:
# Run the formatter.
- id: sqruff-fix
# Run the linter.
- id: sqruff-lint