Linter for Databricks DLT pipelines
Project description
dltlint
Lint Databricks Lakeflow (DLT) pipeline YAML/JSON files.
Installation
pip install dltlint
Usage CLI
# Lint current repo recursively
dltlint
# JSON output for tooling
dltlint --format json
# Fail build on warnings or worse
dltlint --fail-on warning
# Print a success message when clean (otherwise silent on success)
dltlint --ok
Exit codes
- 0 → clean OR no matching files
- 1 → findings at/above threshold (--fail-on)
- 2 → fatal error (e.g., unreadable file)
dltlint discovers:
- *.pipeline.yml,
- *.pipeline.yaml
- *.pipeline.yml.resources,
- *.pipeline.yaml.resources
Pre-commit
Add to your repo’s .pre-commit-config.yaml:
repos:
- repo: https://github.com/dan1elt0m/dltlint
rev: v0.3.2
hooks:
- id: dltlint
Config (pyproject.toml)
[tool.dltlint]
fail_on = "warning" # default: "error"
ignore = ["DLT010", "DLT400"] # suppress specific rules
require = ["catalog", "schema"] # fields that must be present
inline_disable_token = "dltlint: disable" # comment token (see below)
[tool.dltlint.severity_overrides]
DLT400 = "info"
Inline suppressions
Add a comment anywhere in a file to suppress rules for that file:
# dltlint: disable=DLT010,DLT400
resources:
pipelines:
my_pipe:
name: n
catalog: c
schema: s
Line-scoped suppressions require YAML line tracking and are not supported yet.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dltlint-0.3.3.tar.gz.
File metadata
- Download URL: dltlint-0.3.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0825c635e0455a202edef7dcecd577f565b966297040ff47379bcb1b6159e5b7
|
|
| MD5 |
0b155cc0ef83328285d5d46437b985ea
|
|
| BLAKE2b-256 |
5e803858e7f919762ae7fc67c21ef60bc5aa3a74daffdcb4c5c106fbd7b7fb11
|
Provenance
The following attestation bundles were made for dltlint-0.3.3.tar.gz:
Publisher:
build-and-publish.yml on dan1elt0m/dltlint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dltlint-0.3.3.tar.gz -
Subject digest:
0825c635e0455a202edef7dcecd577f565b966297040ff47379bcb1b6159e5b7 - Sigstore transparency entry: 532948911
- Sigstore integration time:
-
Permalink:
dan1elt0m/dltlint@3f18979493234b96b8917b94307ef8503d845b35 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dan1elt0m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@3f18979493234b96b8917b94307ef8503d845b35 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file dltlint-0.3.3-py3-none-any.whl.
File metadata
- Download URL: dltlint-0.3.3-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc456b4f9e5fdd2923b80d7d3e09299e068eb5d12079fb2df630ff0f0819e39
|
|
| MD5 |
2062de7411ac5a294cedc7bd7eba0481
|
|
| BLAKE2b-256 |
547ffcdcb1133c7b75f4b448402380ee6c28aa5224ee90af4ea5e5d09cf9500d
|
Provenance
The following attestation bundles were made for dltlint-0.3.3-py3-none-any.whl:
Publisher:
build-and-publish.yml on dan1elt0m/dltlint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dltlint-0.3.3-py3-none-any.whl -
Subject digest:
afc456b4f9e5fdd2923b80d7d3e09299e068eb5d12079fb2df630ff0f0819e39 - Sigstore transparency entry: 532948933
- Sigstore integration time:
-
Permalink:
dan1elt0m/dltlint@3f18979493234b96b8917b94307ef8503d845b35 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dan1elt0m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@3f18979493234b96b8917b94307ef8503d845b35 -
Trigger Event:
workflow_dispatch
-
Statement type: