mdbt 0.4.28__tar.gz → 0.4.33__tar.gz

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 (27) hide show
  1. {mdbt-0.4.28 → mdbt-0.4.33}/PKG-INFO +1 -1
  2. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/build_dbt_docs_ai.py +5 -10
  3. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt.egg-info/PKG-INFO +1 -1
  4. {mdbt-0.4.28 → mdbt-0.4.33}/setup.py +1 -1
  5. {mdbt-0.4.28 → mdbt-0.4.33}/LICENSE +0 -0
  6. {mdbt-0.4.28 → mdbt-0.4.33}/README.md +0 -0
  7. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/__init__.py +0 -0
  8. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/ai_core.py +0 -0
  9. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/build_unit_test_data_ai.py +0 -0
  10. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/cmdline.py +0 -0
  11. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/core.py +0 -0
  12. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/expectations_output_builder.py +0 -0
  13. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/lightdash.py +0 -0
  14. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/main.py +0 -0
  15. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/precommit_format.py +0 -0
  16. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/prompts.py +0 -0
  17. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/recce.py +0 -0
  18. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/sort_yaml_fields.py +0 -0
  19. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt/sql_sorter.py +0 -0
  20. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt.egg-info/SOURCES.txt +0 -0
  21. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt.egg-info/dependency_links.txt +0 -0
  22. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt.egg-info/entry_points.txt +0 -0
  23. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt.egg-info/requires.txt +0 -0
  24. {mdbt-0.4.28 → mdbt-0.4.33}/mdbt.egg-info/top_level.txt +0 -0
  25. {mdbt-0.4.28 → mdbt-0.4.33}/setup.cfg +0 -0
  26. {mdbt-0.4.28 → mdbt-0.4.33}/tests/test_main.py +0 -0
  27. {mdbt-0.4.28 → mdbt-0.4.33}/tests/test_sort_yaml_fields.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdbt
3
- Version: 0.4.28
3
+ Version: 0.4.33
4
4
  Summary: A CLI tool to manage dbt builds with state handling and manifest management
5
5
  Author: Craig Lathrop
6
6
  Author-email: info@markimicrowave.com
@@ -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
- if lines and '```' in lines[-1].strip():
82
- lines = lines[:-1]
83
- elif len(lines) > 1 and '```' in lines[-2].strip():
84
- # Remove the second-to-last line if it's a code fence
85
- lines.pop(-2)
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
  Metadata-Version: 2.4
2
2
  Name: mdbt
3
- Version: 0.4.28
3
+ Version: 0.4.33
4
4
  Summary: A CLI tool to manage dbt builds with state handling and manifest management
5
5
  Author: Craig Lathrop
6
6
  Author-email: info@markimicrowave.com
@@ -3,7 +3,7 @@ from setuptools import setup
3
3
 
4
4
  setup(
5
5
  name="mdbt",
6
- version="0.4.28",
6
+ version="0.4.33",
7
7
  description="A CLI tool to manage dbt builds with state handling and manifest management",
8
8
  author="Craig Lathrop",
9
9
  author_email="info@markimicrowave.com",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes