mdbt 0.4.29__py3-none-any.whl → 0.4.33__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.
- mdbt/build_dbt_docs_ai.py +5 -10
- {mdbt-0.4.29.dist-info → mdbt-0.4.33.dist-info}/METADATA +1 -1
- {mdbt-0.4.29.dist-info → mdbt-0.4.33.dist-info}/RECORD +7 -7
- {mdbt-0.4.29.dist-info → mdbt-0.4.33.dist-info}/WHEEL +0 -0
- {mdbt-0.4.29.dist-info → mdbt-0.4.33.dist-info}/entry_points.txt +0 -0
- {mdbt-0.4.29.dist-info → mdbt-0.4.33.dist-info}/licenses/LICENSE +0 -0
- {mdbt-0.4.29.dist-info → mdbt-0.4.33.dist-info}/top_level.txt +0 -0
mdbt/build_dbt_docs_ai.py
CHANGED
|
@@ -78,12 +78,11 @@ class BuildDBTDocs(AiCore):
|
|
|
78
78
|
# Check for ``` at end of output (str) and remove
|
|
79
79
|
# Remove trailing markdown code fences if present
|
|
80
80
|
lines = output.split('\n')
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
output = '\n'.join(lines)
|
|
81
|
+
new_lines = []
|
|
82
|
+
for line in lines:
|
|
83
|
+
if '```' not in line:
|
|
84
|
+
new_lines.append(line)
|
|
85
|
+
output = '\n'.join(new_lines)
|
|
87
86
|
if not is_new:
|
|
88
87
|
clip_or_file = input(
|
|
89
88
|
f"1. to copy to clipboard\n2, to write to file ({yml_file_path}\n:"
|
|
@@ -98,10 +97,6 @@ class BuildDBTDocs(AiCore):
|
|
|
98
97
|
if mode == 2:
|
|
99
98
|
# Make a backup of the current YML file.
|
|
100
99
|
self.backup_existing_yml_file(yml_file_path)
|
|
101
|
-
output = assistant_responses[0].split("\n")
|
|
102
|
-
# output = output[1:-1]
|
|
103
|
-
output = output[1:]
|
|
104
|
-
output = "\n".join(output)
|
|
105
100
|
with open(yml_file_path, "w") as file:
|
|
106
101
|
file.write(output)
|
|
107
102
|
if not self.is_file_committed(yml_file_path):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
mdbt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
mdbt/ai_core.py,sha256=diJFT35pGOEIQpUYOk6GFBgQgmK2sHj_F_kfkjeaEyQ,3963
|
|
3
|
-
mdbt/build_dbt_docs_ai.py,sha256=
|
|
3
|
+
mdbt/build_dbt_docs_ai.py,sha256=ytTcZx43ulSpKivBpOR_3Q8mKRq9jkmdAW2vucL7enE,5041
|
|
4
4
|
mdbt/build_unit_test_data_ai.py,sha256=OqJXDerhg54_QVIlVtXNxfk5TKVe68i6JnrV_8iEDrc,4292
|
|
5
5
|
mdbt/cmdline.py,sha256=meNATu3BzP_4Htt5VcoT923mlh9NsfK8og0JQgn9PCE,10822
|
|
6
6
|
mdbt/core.py,sha256=Y1K7ecJTZ9Bfkvk7Kk7-DRO1-QJs9GD6RP6m7sfQ-oY,4522
|
|
@@ -12,9 +12,9 @@ mdbt/prompts.py,sha256=2vCvh9hamgop92kGGaMKtap11F2MZiM7hHKjcwX4lhQ,13992
|
|
|
12
12
|
mdbt/recce.py,sha256=P14CvWd7lRgTPUW7BVMLmcclSqby-_uSgpoI3r5VjTA,2327
|
|
13
13
|
mdbt/sort_yaml_fields.py,sha256=1PROsrz8KubSr0bVmPq3oAw4V-eSiZh1uGRR5B-uaA4,5648
|
|
14
14
|
mdbt/sql_sorter.py,sha256=8bd6svrtcXp7ePT2g4FTGLTW55qbsVjXgUmba7L-G-4,6467
|
|
15
|
-
mdbt-0.4.
|
|
16
|
-
mdbt-0.4.
|
|
17
|
-
mdbt-0.4.
|
|
18
|
-
mdbt-0.4.
|
|
19
|
-
mdbt-0.4.
|
|
20
|
-
mdbt-0.4.
|
|
15
|
+
mdbt-0.4.33.dist-info/licenses/LICENSE,sha256=DrJpgQEYhttwpwcE56BzrGZ1aEfR_tqfaxsI5NlsYOE,1072
|
|
16
|
+
mdbt-0.4.33.dist-info/METADATA,sha256=f_RoFgFRNmgFlYf2la7dwGK52Jcxhp0zZYdHPF2v5jU,920
|
|
17
|
+
mdbt-0.4.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
mdbt-0.4.33.dist-info/entry_points.txt,sha256=fVft1CYVP2MtZMMtsXN67S1T5RszfgKtAuaeoKLdCow,43
|
|
19
|
+
mdbt-0.4.33.dist-info/top_level.txt,sha256=-PP7vAl9EgVjRTzBovElczsPNjOfja6kjZssNmv5vo0,5
|
|
20
|
+
mdbt-0.4.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|