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.
Files changed (36) hide show
  1. dbt_bouncer/artifact_parsers/dbt_cloud/catalog_latest.py +21 -21
  2. dbt_bouncer/artifact_parsers/dbt_cloud/manifest_latest.py +1745 -1745
  3. dbt_bouncer/artifact_parsers/dbt_cloud/run_results_latest.py +22 -22
  4. dbt_bouncer/artifact_parsers/parsers_catalog.py +26 -24
  5. dbt_bouncer/artifact_parsers/parsers_common.py +57 -36
  6. dbt_bouncer/artifact_parsers/parsers_manifest.py +98 -69
  7. dbt_bouncer/artifact_parsers/parsers_run_results.py +32 -19
  8. dbt_bouncer/check_base.py +22 -11
  9. dbt_bouncer/checks/catalog/check_catalog_sources.py +22 -12
  10. dbt_bouncer/checks/catalog/check_columns.py +175 -105
  11. dbt_bouncer/checks/common.py +24 -3
  12. dbt_bouncer/checks/manifest/check_exposures.py +79 -52
  13. dbt_bouncer/checks/manifest/check_lineage.py +69 -40
  14. dbt_bouncer/checks/manifest/check_macros.py +177 -104
  15. dbt_bouncer/checks/manifest/check_metadata.py +28 -18
  16. dbt_bouncer/checks/manifest/check_models.py +842 -496
  17. dbt_bouncer/checks/manifest/check_seeds.py +63 -0
  18. dbt_bouncer/checks/manifest/check_semantic_models.py +28 -20
  19. dbt_bouncer/checks/manifest/check_snapshots.py +57 -33
  20. dbt_bouncer/checks/manifest/check_sources.py +246 -137
  21. dbt_bouncer/checks/manifest/check_unit_tests.py +97 -54
  22. dbt_bouncer/checks/run_results/check_run_results.py +34 -20
  23. dbt_bouncer/config_file_parser.py +47 -28
  24. dbt_bouncer/config_file_validator.py +11 -8
  25. dbt_bouncer/global_context.py +31 -0
  26. dbt_bouncer/main.py +128 -67
  27. dbt_bouncer/runner.py +61 -31
  28. dbt_bouncer/utils.py +146 -50
  29. dbt_bouncer/version.py +1 -1
  30. {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/METADATA +15 -15
  31. dbt_bouncer-2.0.0.dist-info/RECORD +37 -0
  32. dbt_bouncer-1.31.2rc2.dist-info/RECORD +0 -35
  33. {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/WHEEL +0 -0
  34. {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/entry_points.txt +0 -0
  35. {dbt_bouncer-1.31.2rc2.dist-info → dbt_bouncer-2.0.0.dist-info}/licenses/LICENSE +0 -0
  36. {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, Dict, List, Optional, Union
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: Optional[str] = None
18
- dbt_version: Optional[str] = '1.9.0b2'
19
- generated_at: Optional[str] = None
20
- invocation_id: Optional[str] = None
21
- env: Optional[Dict[str, str]] = None
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: Optional[str] = None
32
- comment: Optional[str] = None
33
- owner: Optional[str] = None
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: Optional[str] = None
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: Optional[Union[bool, str, float]] = None
52
+ value: bool | str | float | None = None
53
53
  include: bool
54
- description: Optional[str] = None
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: Dict[str, Columns]
63
- stats: Dict[str, Stats]
64
- unique_id: Optional[str] = None
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: Dict[str, Columns]
73
- stats: Dict[str, Stats]
74
- unique_id: Optional[str] = None
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: Dict[str, Nodes]
83
- sources: Dict[str, Sources]
84
- errors: Optional[List[str]] = None
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')