{"id":51216880,"url":"https://github.com/testdouble/dbt-lint","last_synced_at":"2026-06-28T04:31:25.755Z","repository":{"id":356396523,"uuid":"1178282382","full_name":"testdouble/dbt-lint","owner":"testdouble","description":"Manifest-only dbt linter with 45 built-in rules and a custom rule system","archived":false,"fork":false,"pushed_at":"2026-05-07T21:18:50.000Z","size":498,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-07T23:15:05.928Z","etag":null,"topics":["dbt","linter","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testdouble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-10T21:55:33.000Z","updated_at":"2026-05-07T21:18:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/testdouble/dbt-lint","commit_stats":null,"previous_names":["testdouble/dbt-lint"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/testdouble/dbt-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdouble%2Fdbt-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdouble%2Fdbt-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdouble%2Fdbt-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdouble%2Fdbt-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testdouble","download_url":"https://codeload.github.com/testdouble/dbt-lint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdouble%2Fdbt-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34877471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dbt","linter","python"],"created_at":"2026-06-28T04:31:25.261Z","updated_at":"2026-06-28T04:31:25.750Z","avatar_url":"https://github.com/testdouble.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbt-lint\n\n\u003e Static analysis tool for dbt projects.\n\n## Overview\n\nChecks your compiled `manifest.json` against [dbt best practices](https://docs.getdbt.com/best-practices) for DAG structure, naming conventions, test coverage, documentation standards, and governance rules. No dbt runtime or warehouse connection required.\n\n## Contents\n\n- [Prerequisites](#prerequisites)\n- [Quick start](#quick-start)\n- [Usage](#usage)\n- [Rules](#rules)\n- [Configuration](#configuration)\n- [Custom rules](#custom-rules)\n- [Development](#development)\n- [Scope](#scope)\n- [License](#license)\n\n## Prerequisites\n\n- Python 3.11+\n- dbt manifest v11+ (dbt 1.6+)\n\n## Quick start\n\n```bash\npip install dbt-lint\n```\n\nOr with [uv](https://docs.astral.sh/uv/):\n\n```bash\nuvx dbt-lint target/manifest.json  # try without installing\nuv add --dev dbt-lint               # add as dev dependency\n```\n\nA compiled manifest is required. If you don't have one yet:\n\n```bash\ndbt parse  # or dbt compile / dbt run\n```\n\n## Usage\n\n```shell\ndbt-lint check [OPTIONS] MANIFEST\ndbt-lint rule [OPTIONS] [RULE_ID]\n\ncheck options:\n  --config PATH                          Path to dbt-lint.yml config file\n  --output-format [text|concise|grouped|json]\n                                         Output format (default: text)\n  --select TEXT                          Only run these rule IDs (repeatable)\n  --exclude TEXT                         Skip these rule IDs (repeatable)\n  --fail-on [warn|error]                 Minimum severity for exit code 1 (default: warn)\n  --fail-fast                            Stop after the first violation\n  --exit-zero                            Force exit 0 regardless of violations\n  --isolated                             Bypass config discovery and suppressions auto-load\n  --suppressions PATH                    Path to suppressions file\n  --write-suppressions[=PATH|=-]         Write suppressions YAML; bare flag (placed\n                                         last) writes to the default location, =PATH\n                                         to a file, =- to stdout\n\nrule options:\n  --all                                  List every rule\n  --config PATH                          Path to dbt-lint.yml config file\n  --isolated                             Bypass config discovery (skips custom-rule loading)\n  --output-format [text|json]            Output format (default: text)\n```\n\nExit codes: `0` clean, `1` violations found, `2` tool error.\n\nConfig auto-discovery walks up from cwd looking first for `pyproject.toml [tool.dbt-lint]`, then for `dbt-lint.yml`. Pass `--config PATH` to override or `--isolated` to skip discovery entirely.\n\nWhen a `.dbt-lint-suppressions.yml` sits next to the discovered config or in the cwd, `check` applies it automatically. `--suppressions PATH` overrides the location; `--isolated` and `--write-suppressions` skip the auto-load.\n\nColor is applied to severity tags and headers when stdout is a TTY. Set `NO_COLOR=1` to disable.\n\n### GitHub Actions\n\nIn GitHub Actions runs, dbt-lint automatically emits inline annotations on PR diffs.\n\n```yaml\n- name: Lint dbt project\n  run: dbt-lint check target/manifest.json --config dbt-lint.yml\n```\n\n## Rules\n\nBuilt-in rules cover modeling, testing, documentation, structure, performance, and governance. Run `dbt-lint rule --all` to see all rules with descriptions, or see [docs/rules.md](docs/rules.md) for the full reference.\n\n## Configuration\n\nCreate `dbt-lint.yml` to override defaults, or add a `[tool.dbt-lint]` section to `pyproject.toml`. All settings are optional.\n\n```yaml\n# Adjust thresholds\nmodels_fanout_threshold: 3\ntest_coverage_target: 100\n\n# Override rule severity or disable rules\nrules:\n  modeling/too-many-joins:\n    severity: error\n  structure/intermediate-materialization:\n    enabled: false\n```\n\nSee [docs/configuration.md](docs/configuration.md) for the full reference, including naming prefixes, materialization constraints, per-resource skips, and suppressions.\n\n## Custom rules\n\nWrite project-specific rules in Python using the `@rule` decorator and the `dbt_lint.extend` public API. See [docs/custom-rules.md](docs/custom-rules.md) for the full guide, API reference, and examples.\n\n## Development\n\nSee [CONTRIBUTING.md](.github/CONTRIBUTING.md) for setup, workflow, and how to add rules.\n\n## Scope\n\ndbt-lint checks your project against the [dbt best practices](https://docs.getdbt.com/best-practices) that can be detected in the compiled manifest. SQL style and YAML formatting fall outside the manifest and are covered by companion tools:\n\n- SQL: [SQLFluff](https://sqlfluff.com/)\n- YAML: [yamllint](https://yamllint.readthedocs.io/)\n\nSee [docs/companion-tools.md](docs/companion-tools.md) for ready-to-use configs that align with dbt best practices.\n\n## License\n\n[MIT](./LICENSE) — see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestdouble%2Fdbt-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestdouble%2Fdbt-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestdouble%2Fdbt-lint/lists"}