sqruff is a SQL linter and formatter written in Rust.
- Linting: advanced, configurable SQL linting
- Formatting: automated, configurable formatting
- Speed: fast and efficient
- Portability: easy to integrate into dev workflows
Try it in the browser: https://playground.quary.dev
brew install sqruffFor other platforms (pip, cargo, binary downloads), see the installation guide.
sqruff lint . --dialect postgresCreate a .sqruff file in your project root:
[sqruff]
dialect = postgresThen run without the --dialect flag:
sqruff lint .Full documentation: playground.quary.dev/docs
Key entry points: