dbt-bouncer 1.27.1a2__py3-none-any.whl → 1.28.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.
@@ -89,8 +89,9 @@ def get_config_file_path(
89
89
  """Get the path to the config file for dbt-bouncer. This is fetched from (in order):
90
90
 
91
91
  1. The file passed via the `--config-file` CLI flag.
92
- 2. A file named `dbt-bouncer.yml` in the current working directory.
93
- 3. A `[tool.dbt-bouncer]` section in `pyproject.toml` (in current working directory or parent directories).
92
+ 2. The file passed via the `DBT_BOUNCER_CONFIG_FILE` environment variable.
93
+ 3. A file named `dbt-bouncer.yml` in the current working directory.
94
+ 4. A `[tool.dbt-bouncer]` section in `pyproject.toml` (in current working directory or parent directories).
94
95
 
95
96
  Returns:
96
97
  PurePath: Config file for dbt-bouncer.
@@ -106,6 +107,12 @@ def get_config_file_path(
106
107
  logging.debug(f"Config file passed via command line: {config_file}")
107
108
  return config_file
108
109
 
110
+ if config_file_path_via_env_var := os.getenv("DBT_BOUNCER_CONFIG_FILE"):
111
+ logging.debug(
112
+ f"Config file passed via environment variable: {config_file_path_via_env_var}"
113
+ )
114
+ return Path(config_file_path_via_env_var)
115
+
109
116
  if config_file_source == "DEFAULT":
110
117
  logging.debug(f"Using default value for config file: {config_file}")
111
118
  config_file_path = Path.cwd() / config_file
dbt_bouncer/version.py CHANGED
@@ -5,4 +5,4 @@ def version() -> str:
5
5
  str: The version of `dbt-bouncer`.
6
6
 
7
7
  """
8
- return "1.27.1a2"
8
+ return "1.28.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dbt-bouncer
3
- Version: 1.27.1a2
3
+ Version: 1.28.0
4
4
  Summary: Configure and enforce conventions for your dbt project.
5
5
  License: MIT
6
6
  Keywords: python,cli,dbt,CI/CD
@@ -22,14 +22,14 @@ dbt_bouncer/checks/manifest/check_sources.py,sha256=HW-uZ9toO9veNaahAdxqquerC85z
22
22
  dbt_bouncer/checks/manifest/check_unit_tests.py,sha256=3_0FG91nSfC3k_dBDrJgRjF8rpzeA6GKSr3DmDP0ZTo,8417
23
23
  dbt_bouncer/checks/run_results/check_run_results.py,sha256=LLX8Uziyc4hv303K31wLtuXMXng3WVJF2z1j_GbogAI,4117
24
24
  dbt_bouncer/config_file_parser.py,sha256=gq7fINTmLFVWR4todXkPd_dnh0-9vnM3jHYtgk1g_WU,4874
25
- dbt_bouncer/config_file_validator.py,sha256=lEPv6AfXmUGwuSpl4GzZ4LB0yId7yqjeB2raWfuBs3s,10893
25
+ dbt_bouncer/config_file_validator.py,sha256=_OsuzcDhzyuaeSQFUYN-Cef-EqiUvXm__uBp3dKpv-Q,11224
26
26
  dbt_bouncer/logger.py,sha256=qkwB-SVUE4YUUp-MtmbcDPUX7t3zdniQL5Linuomr94,1804
27
27
  dbt_bouncer/main.py,sha256=n-jOsKlDwAlB2uF__J_DtkU8BC7CqeKMOU_f8axB1fo,6433
28
28
  dbt_bouncer/runner.py,sha256=fdgpOUS8ckS_rZbklOUqFSxmD6I8WYRhQU09HZI0Ghs,10628
29
29
  dbt_bouncer/utils.py,sha256=-jZjc6R0tjHWqpTjgHIb7Ej6Cqwdbchbl7L8IB4mo1I,9890
30
- dbt_bouncer/version.py,sha256=wXbsQLdKDQnGOFF_OtOnBZyGvv0PpgNuU4uZJH_HbEw,151
31
- dbt_bouncer-1.27.1a2.dist-info/LICENSE,sha256=gGXp4VL__ZWlTWhXHRjWJmkxl5X9UJ7L7n1dr2WlfsY,1074
32
- dbt_bouncer-1.27.1a2.dist-info/METADATA,sha256=QdUJ41NA4KPIYzlRp8BJEJOUkwTnVK52xZq7UAHqTZg,4608
33
- dbt_bouncer-1.27.1a2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
34
- dbt_bouncer-1.27.1a2.dist-info/entry_points.txt,sha256=jEl2FZDm4gO8u4x9m8qS0zMf9Fk2FAwLfI4N4sreGxI,52
35
- dbt_bouncer-1.27.1a2.dist-info/RECORD,,
30
+ dbt_bouncer/version.py,sha256=q2hU-2bppL-2u9LYg20hzKbLEYgZCGrZWdc1V7njjkc,149
31
+ dbt_bouncer-1.28.0.dist-info/LICENSE,sha256=gGXp4VL__ZWlTWhXHRjWJmkxl5X9UJ7L7n1dr2WlfsY,1074
32
+ dbt_bouncer-1.28.0.dist-info/METADATA,sha256=9d1TwoMcohJey8J7cChO80TqbGn3DOBfHc0BtdX4KQQ,4606
33
+ dbt_bouncer-1.28.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
34
+ dbt_bouncer-1.28.0.dist-info/entry_points.txt,sha256=jEl2FZDm4gO8u4x9m8qS0zMf9Fk2FAwLfI4N4sreGxI,52
35
+ dbt_bouncer-1.28.0.dist-info/RECORD,,