t-bug-catcher 0.4.8__tar.gz → 0.4.9__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.
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/PKG-INFO +1 -1
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/setup.cfg +1 -1
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/setup.py +1 -1
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/__init__.py +1 -1
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/validation.py +14 -1
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher.egg-info/PKG-INFO +1 -1
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/MANIFEST.in +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/README.rst +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/pyproject.toml +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/requirements.txt +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/bug_catcher.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/bug_snag.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/config.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/exceptions.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/jira.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/resources/whispers_config.yml +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/stack_saver.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/utils/__init__.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/utils/common.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/utils/logger.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher/workitems.py +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher.egg-info/SOURCES.txt +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher.egg-info/dependency_links.txt +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher.egg-info/not-zip-safe +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher.egg-info/requires.txt +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/t_bug_catcher.egg-info/top_level.txt +0 -0
- {t_bug_catcher-0.4.8 → t_bug_catcher-0.4.9}/tests/test_t_bug_catcher.py +0 -0
|
@@ -26,7 +26,7 @@ setup(
|
|
|
26
26
|
packages=find_packages(include=["t_bug_catcher", "t_bug_catcher.*"]),
|
|
27
27
|
test_suite="tests",
|
|
28
28
|
url="https://www.thoughtful.ai/",
|
|
29
|
-
version="0.4.
|
|
29
|
+
version="0.4.9",
|
|
30
30
|
zip_safe=False,
|
|
31
31
|
install_requires=install_requirements,
|
|
32
32
|
include_package_data=True,
|
|
@@ -6,6 +6,13 @@ from t_bug_catcher.utils.common import strip_path
|
|
|
6
6
|
|
|
7
7
|
validation_logger = logging.getLogger("t_bug_catcher")
|
|
8
8
|
|
|
9
|
+
validation_logger.setLevel(logging.DEBUG)
|
|
10
|
+
console_handler = logging.StreamHandler()
|
|
11
|
+
console_handler.setLevel(logging.DEBUG)
|
|
12
|
+
|
|
13
|
+
formatter = logging.Formatter("%(levelname)s - %(name)s - %(message)s")
|
|
14
|
+
validation_logger.addHandler(console_handler)
|
|
15
|
+
|
|
9
16
|
EXCLUDED_DIRS = [".venv", "venv", "site-packages"]
|
|
10
17
|
|
|
11
18
|
|
|
@@ -87,7 +94,13 @@ class PreRunValidation:
|
|
|
87
94
|
"""Checks for broad exception warnings in the specified file."""
|
|
88
95
|
with open(filename, "r", encoding="utf8") as source:
|
|
89
96
|
source_code = source.read()
|
|
90
|
-
|
|
97
|
+
try:
|
|
98
|
+
tree = ast.parse(source_code, filename=filename)
|
|
99
|
+
except SyntaxError:
|
|
100
|
+
return
|
|
101
|
+
except Exception as ex:
|
|
102
|
+
validation_logger.error(f"Unable to validate: {filename} - {ex}")
|
|
103
|
+
return
|
|
91
104
|
|
|
92
105
|
visitor = IncorrectTryBlockVisitor()
|
|
93
106
|
visitor.visit(tree)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|