Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation to get started #25

Merged
merged 7 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions docs/get_started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Get started

`dbt-score` is a Python library that is easy to install and use. The minimum
required version of Python is `3.11`.

## Installation

Installation of `dbt-score` is simple:

```shell
pip install dbt-score
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a note here about virtual environments? Something like "if you use a virtual environment for dbt, dbt -score should be installed in the same"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea 👍

```

If a virtual environment is used to run dbt, make sure to install `dbt-score` in
the same environment.

## Usage

`dbt-score` uses the output of `dbt parse` (`manifest.json`) as input.
Therefore, it is recommended to run `dbt-score` from the root of your dbt
project. By default, it will look for `manifest.json` in dbt's `target`
directory.

`dbt-score` can be executed from the command line:

```shell
dbt-score lint
```

To use a different manifest file, use the `--manifest` option:

```shell
dbt-score lint --manifest path/to/manifest.json
```

It's also possible to automatically run `dbt parse`, to generate the
`manifest.json` file:

```shell
dbt-score lint --run-dbt-parse
```

To get more information on how to run `dbt-score`, `--help` can be used:

```shell
dbt-score --help
```

```shell
dbt-score lint --help
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ markdown_extensions:
- pymdownx.superfences
nav:
- Home: index.md
- Get started: get_started.md
- Rules:
- rules/generic.md
- Reference:
Expand Down