Linter for dbt model metadata.
Project description
dbt-score
Linter for dbt model metadata.
Development
Prerequisites
You'll need the following prerequisites:
- Any Python version starting from 3.11
- pre-commit
- PDM
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:
- ruff for fast linting and formatting.
- mypy for type checking.
- pre-commit-hooks.
- prettier-hooks.
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:
- mkdocs for docs generation.
- mkdocstrings for automatic docs from sources.
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)
Built Distribution
dbt_score-0.1.1-py3-none-any.whl
(20.5 kB
view hashes)
Close
Hashes for dbt_score-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc8ec2307e5f4107c6b161fa587ef502c49727b6eea51134402b7df12437328 |
|
MD5 | d76be3627d704802fc67087a822d982c |
|
BLAKE2b-256 | 61138b815636838f97b9a6352387f1d2f4cef1ec039384ec4ba550e3a4229511 |