-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04f7ced
commit 9731789
Showing
5 changed files
with
71 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,65 @@ | ||
# dbt-score | ||
|
||
Linter for dbt model metadata. | ||
|
||
## Development | ||
|
||
### Prerequisites | ||
|
||
You'll need the following prerequisites: | ||
|
||
* Any Python version starting from 3.10 | ||
* [pre-commit](https://pre-commit.com/) | ||
* [PDM](https://pdm-project.org/2.12/) | ||
|
||
Configure development environment running these commands from the project's root: | ||
|
||
```shell | ||
pre-commit install | ||
pdm install --group :all | ||
``` | ||
|
||
### Lint | ||
|
||
`dbt_score` uses: | ||
* [ruff](https://docs.astral.sh/ruff/) for fast linting and formatting. | ||
* [mypy](https://mypy.readthedocs.io/en/stable/) for type checking. | ||
* [pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks). | ||
|
||
Cheatsheet: | ||
|
||
```shell | ||
pdm run ruff check . | ||
pdm run ruff check --fix | ||
pdm run mypy . | ||
pre-commit run --all-files | ||
pdm run tox -e lint | ||
``` | ||
|
||
### Test | ||
|
||
`dbt_score` uses: | ||
* [pytest](https://docs.pytest.org/) as a main test framework. | ||
* [coverage](https://coverage.readthedocs.io/en/latest/index.html) for test coverage. | ||
* [tox](https://tox.wiki/en/latest/) for testing against multiple Python versions. | ||
|
||
Cheatsheet: | ||
|
||
```shell | ||
pdm run tox -e py | ||
pdm run pytest | ||
pdm run coverage run -m pytest | ||
``` | ||
|
||
### Docs | ||
|
||
`dbt_score` uses: | ||
* [mkdocs](https://www.mkdocs.org/) for docs generation. | ||
* [mkdocstrings](https://mkdocstrings.github.io/) for automatic docs from sources. | ||
|
||
Cheatsheet: | ||
|
||
```shell | ||
pdm run mkdocs build | ||
pdm run mkdocs serve | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ authors = [ | |
{name = "Picnic Analyst Development Platform", email = "[email protected]"} | ||
] | ||
dependencies = [ | ||
"dbt-core~=1.7", | ||
"dbt-core>=1.5", | ||
] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.10" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tox] | ||
env_list = py{38,39,310,311},lint,docs | ||
env_list = py{310,311},lint,docs | ||
|
||
skip_missing_interpreters = true | ||
|
||
|