Skip to main content

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

A) Use the repo’s published hook Add to your repo’s .pre-commit-config.yaml: repos:

  • repo: https://github.com/dan1elt0m/dltlint rev: v0.0.1 # tag or commit hooks:
    • id: dltlint

      By default the hook runs from repo root and scans recursively.

      If you prefer to pass staged files only, uncomment:

      pass_filenames: true

      args: ["--fail-on", "error"]

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dltlint-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dltlint-0.1.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file dltlint-0.1.0.tar.gz.

File metadata

  • Download URL: dltlint-0.1.0.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

Hashes for dltlint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c0b8cb7282daf2cdebaacac8cb1c2f804be82552e81dc31feb3dc0dd83782d5
MD5 1b57c80261a6f2a60e64674b8bf768cc
BLAKE2b-256 21ac8212dac1becb4e9fbda187a586e457934aa80a1bc208967fc1399bb03b3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dltlint-0.1.0.tar.gz:

Publisher: build-and-publish.yml on dan1elt0m/dltlint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dltlint-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dltlint-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dltlint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 102ea3cf9fd28e3a54fc2bd3af2ca2ee19d92a0a552e0b8c7f6f01dd8974eca3
MD5 393b0cd1684e9f264d2b0c49b359b6b5
BLAKE2b-256 9aaa7f71b84b0c06de73d1ad673e3f25ad05f10c0e6203c1076283da749c996a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dltlint-0.1.0-py3-none-any.whl:

Publisher: build-and-publish.yml on dan1elt0m/dltlint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page