Comparison
collate-sqlfluff vs shandy-sqlfmt vs sql-formatter vs sqruff
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The SQL Linter for Humans
Maintained. Last release 13 days ago, commits in 1 of the last 26 weeks. Weaker on commit activity.
$
pip install collate-sqlfluffsqlfmt formats your dbt SQL files so you don't have to.
Actively maintained. Last release 4 months ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install shandy-sqlfmtA SQL formatter
Likely abandoned. No release or commit for years (last release over 5 years ago).
$
pip install sql-formatterA SQL linter written in rust.
Actively maintained. Last release 5 weeks ago. A safe choice.
$
pip install sqruffIn short
- sql-formatter looks abandoned: avoid it for new projects.
- shandy-sqlfmt is the most used: 1.2M downloads a month, 1.9× more than sql-formatter.
- Maintenance is comparable: sqruff 84, shandy-sqlfmt 80, collate-sqlfluff 69 on Pythie’s Index.
- shandy-sqlfmt is growing fastest: downloads +16% over the last month.
- collate-sqlfluff is the newcomer: first released Mar 2025.
- Safe default for a new project: shandy-sqlfmt.
Side by side
| Metric | collate-sqlfluff | shandy-sqlfmt | sql-formatter | sqruff |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 69 | 80 |