dbtective 0.1.25__py3-none-win_amd64.whl → 0.1.27__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dbtective-0.1.25.data → dbtective-0.1.27.data}/scripts/dbtective.exe +0 -0
- {dbtective-0.1.25.dist-info → dbtective-0.1.27.dist-info}/METADATA +28 -39
- dbtective-0.1.27.dist-info/RECORD +5 -0
- dbtective-0.1.25.dist-info/RECORD +0 -5
- {dbtective-0.1.25.dist-info → dbtective-0.1.27.dist-info}/WHEEL +0 -0
- {dbtective-0.1.25.dist-info → dbtective-0.1.27.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dbtective
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.27
|
|
4
4
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -24,6 +24,10 @@ Project-URL: Homepage, https://feliblo.github.io/dbtective/
|
|
|
24
24
|
|
|
25
25
|
dbtective is a Rust-powered 'detective' for `dbt metadata` best practices. As your dbt project grows, keeping metadata consistent and high-quality can become a real challenge.
|
|
26
26
|
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
|
|
30
|
+
|
|
27
31
|
Explore the [full documentation](https://feliblo.github.io/dbtective/docs) or the [possible checks](https://feliblo.github.io/dbtective/docs/checks).
|
|
28
32
|
|
|
29
33
|
> [!WARNING]
|
|
@@ -39,7 +43,7 @@ Explore the [full documentation](https://feliblo.github.io/dbtective/docs) or th
|
|
|
39
43
|
|
|
40
44
|
We detect and enforce these rules in your `cli`, `prek`/`pre-commit` and `CI/CD` pipeline, so fast you will barely notice🕵️.
|
|
41
45
|
|
|
42
|
-
##
|
|
46
|
+
## Installation
|
|
43
47
|
|
|
44
48
|
<details>
|
|
45
49
|
<summary>Pip (pypi)</summary>
|
|
@@ -76,7 +80,7 @@ brew install feliblo/tap/dbtective
|
|
|
76
80
|
Run dbtective as part of your CI/CD pipeline. See the [GitHub Actions documentation](https://feliblo.github.io/dbtective/docs/github-actions) for more details.
|
|
77
81
|
|
|
78
82
|
```yaml
|
|
79
|
-
- uses: feliblo/dbtective@v0.1.
|
|
83
|
+
- uses: feliblo/dbtective@v0.1.27
|
|
80
84
|
with:
|
|
81
85
|
config-file: "dbtective.yml"
|
|
82
86
|
entry-point: "."
|
|
@@ -98,7 +102,7 @@ Add the following to your `.pre-commit-config.yaml`.
|
|
|
98
102
|
```yaml
|
|
99
103
|
repos:
|
|
100
104
|
- repo: https://github.com/feliblo/dbtective
|
|
101
|
-
rev: v0.1.
|
|
105
|
+
rev: v0.1.27
|
|
102
106
|
hooks:
|
|
103
107
|
- id: dbtective-run
|
|
104
108
|
args: [--only-manifest]
|
|
@@ -143,56 +147,41 @@ Pre-built binaries for Linux, macOS, and Windows are available on the [releases
|
|
|
143
147
|
|
|
144
148
|
## Quickstart
|
|
145
149
|
|
|
146
|
-
All possible checks can be found in the [checks documentation](https://feliblo.github.io/dbtective/docs/). Information about
|
|
150
|
+
All possible checks can be found in the [checks documentation](https://feliblo.github.io/dbtective/docs/). Information about customizing `dbtective` is shown at the [config documentation](https://feliblo.github.io/dbtective/docs/config)
|
|
147
151
|
|
|
148
|
-
|
|
152
|
+
1. Create a `dbtective.yml` config file in the root of your dbt project by running:
|
|
149
153
|
|
|
150
|
-
|
|
154
|
+
More about the `init` (it also supports `pyproject.toml` or `dbtective.toml`) command is available in the [init documentation](https://feliblo.github.io/dbtective/docs/cli#dbtective-init).
|
|
151
155
|
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
- name: "models_must_have_description"
|
|
155
|
-
type: "has_description"
|
|
156
|
-
severity: "error"
|
|
157
|
-
applies_to: ["models", "sources"]
|
|
158
|
-
description: " models and sources must have a description."
|
|
159
|
-
|
|
160
|
-
- name: "naming_convention"
|
|
161
|
-
type: "name_convention"
|
|
162
|
-
description: "Everything must follow the naming convention."
|
|
163
|
-
pattern: "snake_case"
|
|
164
|
-
|
|
165
|
-
- name: "all_marts_must_be_tagged"
|
|
166
|
-
type: "has_tags"
|
|
167
|
-
severity: "warning"
|
|
168
|
-
applies_to: ["models"]
|
|
169
|
-
tags:
|
|
170
|
-
- "mart"
|
|
171
|
-
description: "All marts must be tagged with 'mart'"
|
|
156
|
+
```bash
|
|
157
|
+
dbtective init
|
|
172
158
|
```
|
|
173
159
|
|
|
174
|
-
|
|
160
|
+
Inspect the contents of the generated `dbtective.yml` file and modify it to fit your project's needs.
|
|
161
|
+
|
|
162
|
+
2. (Optional) Generate the dbt manifest and catalog files if you haven't done so already. Most dbt commands automatically generate the `manifest.json`, but if you want to ensure both files are up to date, run:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
dbt compile
|
|
166
|
+
dbt docs generate
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
3. Run `dbtective` in the root of your current directory or specify an entry point if your dbt_project is not located in the root/current drectory.
|
|
175
170
|
|
|
176
171
|
```bash
|
|
177
172
|
dbtective run
|
|
178
173
|
dbtective run --entry-point "my_dbt_project"
|
|
179
174
|
```
|
|
180
175
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help makes dbtective better for everyone.
|
|
176
|
+
4. Review the output and fix any issues found.
|
|
184
177
|
|
|
185
|
-
|
|
186
|
-
Install [just](https://github.com/casey/just) command line runner & take a look at the commands in the justfile.
|
|
178
|
+
5. (Optional) Integrate `dbtective` into your CI/CD pipeline or pre-commit hooks to automate checks on every commit and/or pull request.
|
|
187
179
|
|
|
188
|
-
|
|
180
|
+
## Contributing
|
|
189
181
|
|
|
190
|
-
|
|
191
|
-
just run
|
|
192
|
-
just run-verbose
|
|
193
|
-
```
|
|
182
|
+
We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help makes dbtective better for everyone.
|
|
194
183
|
|
|
195
|
-
For detailed contributing guidelines, development setup, and coding standards, please see [
|
|
184
|
+
For detailed contributing guidelines, development setup, and coding standards, please see the [contributing documentation](https://feliblo.github.io/dbtective/docs/).
|
|
196
185
|
|
|
197
186
|
|
|
198
187
|
# Acknowledgements
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
dbtective-0.1.27.data/scripts/dbtective.exe,sha256=8IBu3eDaNK0WKVP4TMwCw1Inmr6xS5yNNL_WnRvBt4I,4863488
|
|
2
|
+
dbtective-0.1.27.dist-info/METADATA,sha256=383SuL3dODrwFBiG3FXItpq1POY-dve2E_as06mmv2E,6155
|
|
3
|
+
dbtective-0.1.27.dist-info/WHEEL,sha256=14-pPWiwFoCAtTgD4hWnxHSfZQqe6Zt0DfwcROvwlzs,94
|
|
4
|
+
dbtective-0.1.27.dist-info/licenses/LICENSE,sha256=l6L0uB6P0NYfB1uZ_2lUNbryleAeanq49Fz1D7MlG7I,1088
|
|
5
|
+
dbtective-0.1.27.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
dbtective-0.1.25.data/scripts/dbtective.exe,sha256=wMuvq__T-4Vu7OWlse6CZBJNk5nmC6lgsmWqhJh-kp4,4751360
|
|
2
|
-
dbtective-0.1.25.dist-info/METADATA,sha256=l0e07KVSoQrGZ3y9dl4kjDcelNZcRRrVbnxUxvtAE8k,6187
|
|
3
|
-
dbtective-0.1.25.dist-info/WHEEL,sha256=14-pPWiwFoCAtTgD4hWnxHSfZQqe6Zt0DfwcROvwlzs,94
|
|
4
|
-
dbtective-0.1.25.dist-info/licenses/LICENSE,sha256=l6L0uB6P0NYfB1uZ_2lUNbryleAeanq49Fz1D7MlG7I,1088
|
|
5
|
-
dbtective-0.1.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|