Rust Apache-2.0

sqruff

Fast SQL formatter/linter

Q

quarylabs

Dernière activité 29 sept. 2026
quarylabs/sqruff

1,4 k

étoiles

75

forks

429

issues ouvertes

ansibigqueryclickhouselinterrustsnowflakesql

Ce README est souvent en anglais.

sqruff

CodSpeed Badge

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

Table of contents

  1. Quickstart
  2. Editor integrations
  3. Documentation

Quickstart

Install (macOS)

brew install sqruff

For other platforms (pip, cargo, binary downloads), see the installation guide.

Lint a project

sqruff lint . --dialect postgres

Configure a project

Create a .sqruff file in your project root:

[sqruff]
dialect = postgres

Then run without the --dialect flag:

sqruff lint .

Editor integrations

sqruff ships an LSP server (sqruff lsp) usable from any editor. This repo maintains two integrations:

Documentation

Full documentation: playground.quary.dev/docs

Key entry points:

Projets similaires

A modular SQL linter and auto-formatter with support for multiple dialects and templated code.

Pythonhacktoberfestpypisql
Ssqlfluff
9,9 k étoiles1,2 k

An extremely fast Python linter and code formatter, written in Rust.

Rustlinterpep8python
Aastral-sh
49,8 k étoiles2,5 k

Next-generation SQL static analyzer written in Rust. 282+ rules. Zero false positives. Security, performance, reliability, cost, compliance, quality. 14 SQL dialects. Offline. CI/CD ready.

Rustbigqueryci-cdclickhouse
Sslowql
227 étoiles13