SQLFluff SQL Linter and Auto-Formatter
Lint and auto-format SQL code across 30+ dialects using SQLFluff. Enforces consistent style, catches syntax issues, and supports Jinja/dbt templating for ELT workflows.
Installation
Use the upstream install or setup path that matches your environment:
- $ pip install sqlfluff
- $ pip install sqlfluff[rs]
Requirements and caveats from upstream:
Basic usage or getting-started notes:
To get started, install the package and run sqlfluff lint or sqlfluff fix.
shell
Extracted from upstream docs: https://raw.githubusercontent.com/sqlfluff/sqlfluff/HEAD/README.md