Skip to content

SQLFluffThe SQL Linter for Humans

Dialect-flexible and configurable SQL linter

SQLFluff Logo

Quick Example

sql
-- Before linting
SELECT a,b  FROM my_table

-- After sqlfluff fix
SELECT
    a,
    b
FROM my_table

Getting Started

Install SQLFluff with pip:

bash
pip install sqlfluff

Lint your SQL files:

bash
sqlfluff lint my_query.sql

Auto-fix issues:

bash
sqlfluff fix my_query.sql

Released under the MIT License.