dbt-bouncer 1.31.2rc2__py3-none-any.whl → 2.0.0__py3-none-any.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.
- dbt_bouncer/artifact_parsers/dbt_cloud/catalog_latest.py +21 -21
- dbt_bouncer/artifact_parsers/dbt_cloud/manifest_latest.py +1745 -1745
- dbt_bouncer/artifact_parsers/dbt_cloud/run_results_latest.py +22 -22
- dbt_bouncer/artifact_parsers/parsers_catalog.py +26 -24
- dbt_bouncer/artifact_parsers/parsers_common.py +57 -36
- dbt_bouncer/artifact_parsers/parsers_manifest.py +98 -69
- dbt_bouncer/artifact_parsers/parsers_run_results.py +32 -19
- dbt_bouncer/check_base.py +22 -11
- dbt_bouncer/checks/catalog/check_catalog_sources.py +22 -12
- dbt_bouncer/checks/catalog/check_columns.py +175 -105
- dbt_bouncer/checks/common.py +24 -3
- dbt_bouncer/checks/manifest/check_exposures.py +79 -52
- dbt_bouncer/checks/manifest/check_lineage.py +69 -40
- dbt_bouncer/checks/manifest/check_macros.py +177 -104
- dbt_bouncer/checks/manifest/check_metadata.py +28 -18
- dbt_bouncer/checks/manifest/check_models.py +842 -496
- dbt_bouncer/checks/manifest/check_seeds.py +63 -0
- dbt_bouncer/checks/manifest/check_semantic_models.py +28 -20
- dbt_bouncer/checks/manifest/check_snapshots.py +57 -33
- dbt_bouncer/checks/manifest/check_sources.py +246 -137
- dbt_bouncer/checks/manifest/check_unit_tests.py +97 -54
- dbt_bouncer/checks/run_results/check_run_results.py +34 -20
- dbt_bouncer/config_file_parser.py +47 -28
- dbt_bouncer/config_file_validator.py +11 -8
- dbt_bouncer/global_context.py +31 -0
- dbt_bouncer/main.py +128 -67
- dbt_bouncer/runner.py +61 -31
- dbt_bouncer/utils.py +146 -50
- dbt_bouncer/version.py +1 -1
- {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/METADATA +15 -15
- dbt_bouncer-2.0.0.dist-info/RECORD +37 -0
- dbt_bouncer-1.31.2rc2.dist-info/RECORD +0 -35
- {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/WHEEL +0 -0
- {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/entry_points.txt +0 -0
- {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
from __future__ import annotations
|
|
5
5
|
|
|
6
|
-
from typing import Any
|
|
6
|
+
from typing import Any
|
|
7
7
|
|
|
8
8
|
from pydantic import ConfigDict, Field
|
|
9
9
|
|
|
@@ -14,11 +14,11 @@ class Metadata(BaseParserModel):
|
|
|
14
14
|
model_config = ConfigDict(
|
|
15
15
|
extra='allow',
|
|
16
16
|
)
|
|
17
|
-
dbt_schema_version:
|
|
18
|
-
dbt_version:
|
|
19
|
-
generated_at:
|
|
20
|
-
invocation_id:
|
|
21
|
-
env:
|
|
17
|
+
dbt_schema_version: str | None = None
|
|
18
|
+
dbt_version: str | None = '1.9.0b2'
|
|
19
|
+
generated_at: str | None = None
|
|
20
|
+
invocation_id: str | None = None
|
|
21
|
+
env: dict[str, str] | None = None
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class Metadata1(BaseParserModel):
|
|
@@ -28,9 +28,9 @@ class Metadata1(BaseParserModel):
|
|
|
28
28
|
type: str
|
|
29
29
|
schema_: str = Field(..., alias='schema')
|
|
30
30
|
name: str
|
|
31
|
-
database:
|
|
32
|
-
comment:
|
|
33
|
-
owner:
|
|
31
|
+
database: str | None = None
|
|
32
|
+
comment: str | None = None
|
|
33
|
+
owner: str | None = None
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
class Columns(BaseParserModel):
|
|
@@ -40,7 +40,7 @@ class Columns(BaseParserModel):
|
|
|
40
40
|
type: str
|
|
41
41
|
index: int
|
|
42
42
|
name: str
|
|
43
|
-
comment:
|
|
43
|
+
comment: str | None = None
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
class Stats(BaseParserModel):
|
|
@@ -49,9 +49,9 @@ class Stats(BaseParserModel):
|
|
|
49
49
|
)
|
|
50
50
|
id: str
|
|
51
51
|
label: str
|
|
52
|
-
value:
|
|
52
|
+
value: bool | str | float | None = None
|
|
53
53
|
include: bool
|
|
54
|
-
description:
|
|
54
|
+
description: str | None = None
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
class Nodes(BaseParserModel):
|
|
@@ -59,9 +59,9 @@ class Nodes(BaseParserModel):
|
|
|
59
59
|
extra='allow',
|
|
60
60
|
)
|
|
61
61
|
metadata: Metadata1 = Field(..., title='TableMetadata')
|
|
62
|
-
columns:
|
|
63
|
-
stats:
|
|
64
|
-
unique_id:
|
|
62
|
+
columns: dict[str, Columns]
|
|
63
|
+
stats: dict[str, Stats]
|
|
64
|
+
unique_id: str | None = None
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
class Sources(BaseParserModel):
|
|
@@ -69,9 +69,9 @@ class Sources(BaseParserModel):
|
|
|
69
69
|
extra='allow',
|
|
70
70
|
)
|
|
71
71
|
metadata: Metadata1 = Field(..., title='TableMetadata')
|
|
72
|
-
columns:
|
|
73
|
-
stats:
|
|
74
|
-
unique_id:
|
|
72
|
+
columns: dict[str, Columns]
|
|
73
|
+
stats: dict[str, Stats]
|
|
74
|
+
unique_id: str | None = None
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
class CatalogLatest(BaseParserModel):
|
|
@@ -79,7 +79,7 @@ class CatalogLatest(BaseParserModel):
|
|
|
79
79
|
extra='allow',
|
|
80
80
|
)
|
|
81
81
|
metadata: Metadata = Field(..., title='CatalogMetadata')
|
|
82
|
-
nodes:
|
|
83
|
-
sources:
|
|
84
|
-
errors:
|
|
82
|
+
nodes: dict[str, Nodes]
|
|
83
|
+
sources: dict[str, Sources]
|
|
84
|
+
errors: list[str] | None = None
|
|
85
85
|
field_compile_results: Any = Field(None, alias='_compile_results')
|