Skip to main content

Linter for dbt model metadata.

Project description

dbt-score

CI PyPI version PyPI license Docs PyPI - Python Version PRs Welcome

Linter for dbt model metadata.

Development

Prerequisites

You'll need the following prerequisites:

Configure development environment running these commands from the project's root:

pre-commit install
pdm install --group :all

The pdm command will install all project's dependency groups, including all the dependencies needed for development purposes.

Lint

dbt_score uses:

Cheatsheet:

pdm run ruff check .
pdm run ruff check --fix
pdm run mypy .
pdm run tox -e lint

Test

dbt_score uses:

  • pytest as a main test framework.
  • coverage for test coverage.
  • tox for testing against multiple Python versions.

Cheatsheet:

pdm run tox -e py
pdm run pytest
pdm run coverage run -m pytest

Docs

dbt_score uses:

Cheatsheet:

pdm run mkdocs build
pdm run mkdocs serve

Pre-commit

Cheatsheet:

Execute hooks manually:

pre-commit run --all-files

Create a commit bypassing hooks:

git commit --no-verify

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

dbt_score-0.1.1.tar.gz (23.0 kB view hashes)

Uploaded Source

Built Distribution

dbt_score-0.1.1-py3-none-any.whl (20.5 kB view hashes)

Uploaded Python 3

Supported by

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