$npx skillfedfor your agent

sqlfluff-templater-dbt

Lint your dbt project SQL

With conditionsPyPI UtilitiesReleased Aug 20263.7M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — sqlfluff_templater_dbt-4.3.0-py3-none-any.whl
v4.3.0 · released 2026-08-07 · 3 runtime deps: sqlfluff, dbt-core, jinja2-simple-tags

Yes, if you use dbt and want to lint your project's SQL. The plugin is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and integrates cleanly with SQLFluff's existing multi-dialect support. Install it when you need to enforce SQL quality standards on dbt-generated code.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires dbt-core to be installed and a valid dbt project structure with dbt_project.yml present for template resolution.
  • Low install friction with a pure-Python wheel.
  • Actively maintained with a release 7 days ago and 9853 GitHub stars.

License · maintenance · safety

permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.

last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 9,853 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,717,769 downloads/mo, #2,518 on PyPI

Verify before relying

pip install sqlfluff-templater-dbt

from sqlfluff.core import Linter

linter = Linter(dialect='snowflake', templater='dbt')
result = linter.lint_string('SELECT * FROM {{ ref("my_model") }}')
  • Specific dbt versions or configurations required for full compatibility with this templater plugin.
  • Whether the templater supports all dbt features (macros, packages, custom tests) or has known limitations.
  • Performance characteristics when linting large dbt projects with many models and dependencies.
Same gist for agents: .md · .json

What it is and what it does

sqlfluff-templater-dbt is a plugin that extends SQLFluff's linting capabilities to work with dbt projects. It allows SQLFluff to parse and lint dbt template syntax—Jinja2 expressions, dbt macros, and ref() calls—by rendering them through dbt's templating engine before analysis. This bridges the gap between dbt's SQL generation and SQLFluff's dialect-aware linting, letting you enforce SQL style and correctness rules across your entire dbt project.

The plugin is designed for teams using dbt for ELT workflows who want to maintain consistent SQL quality and formatting standards. It integrates dbt-core and jinja2-simple-tags to handle template resolution, then applies SQLFluff's linting rules to the rendered output. You can use it to auto-fix formatting issues, catch SQL errors, and enforce organizational style guides on dbt-generated SQL.

Use it for

  • Enforce SQL formatting and style standards across a dbt project's models and tests.
  • Auto-fix spacing, indentation, and syntax issues in dbt SQL before deployment.
  • Catch SQL dialect-specific errors in dbt models targeting Snowflake, BigQuery, or other databases.
  • Integrate dbt SQL linting into CI/CD pipelines to gate model deployments on code quality.
  • Validate dbt macros and templated SQL for consistency across teams.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use dbt and want to lint your project's SQL.

The plugin is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and integrates cleanly with SQLFluff's existing multi-dialect support. Install it when you need to enforce SQL quality standards on dbt-generated code.

Install

sqlfluff-templater-dbt on PyPI

Before you install

Low install friction with a pure-Python wheel. Actively maintained with a release 7 days ago and 9853 GitHub stars. Requires sqlfluff, dbt-core, and jinja2-simple-tags as runtime dependencies.

Requires dbt-core to be installed and a valid dbt project structure with dbt_project.yml present for template resolution.

License in practice

MIT License permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.

Quickstart

pip install sqlfluff-templater-dbt

from sqlfluff.core import Linter

linter = Linter(dialect='snowflake', templater='dbt')
result = linter.lint_string('SELECT * FROM {{ ref("my_model") }}')

Verify before relying

  • Specific dbt versions or configurations required for full compatibility with this templater plugin.
  • Whether the templater supports all dbt features (macros, packages, custom tests) or has known limitations.
  • Performance characteristics when linting large dbt projects with many models and dependencies.

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
sqlfluffdbt-corejinja2-simple-tags
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads3,717,769 / month, #2,518 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Quality AssuranceTopic :: Utilities

Evidence: sqlfluff_templater_dbt-4.3.0-py3-none-any.whl

Tags

Capabilities
dbt sql lintingsqlfluff dbt templatinglint dbt project sqldbt template sql formatterdbt sql quality checkssqlfluff dbt integrationdbt sql style enforcement
Topics
dbt-integrationsql-lintingdata-engineering
PyPI keywords
sqlfluffsqllinterformatterbigqueryclickhousedatabricksdb2duckdbexasolgreenplumhivematerializemysqlpostgresredshiftsnowflakesoqlsparksqlsqliteteradatatsqldbt

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dbt sql linting”

  • sqlfluff-templater-dbtEnables SQLFluff to lint and auto-fix dbt project SQL using dbt…
  • collate-sqlfluffSQLFluff is a SQL linter and auto-fixer that checks SQL code for…
  • sqlfluffSQLFluff is a SQL linter and auto-fixer that checks SQL code for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also collate-sqlfluff · dbt-extractor · sqlfluff · dbt-core-interface · shandy-sqlfmt · sqlfluffrs · sqlglot · sqlglotrs · collate-sqllineage · dbt-osmosis