Commit 374528a
refactor: switch sentry_sdk from soft import to required dependency
Address PR feedback from @pnilan:
- Add sentry-sdk as a required dependency in pyproject.toml
- Use standard top-level import instead of try/except ImportError
- Remove sentry_sdk from deptry DEP001 ignore list
- Drop the 'sentry_sdk is not None' guard (always available)
- Deduplicate warning message format string (build once, reuse)
- Replace graceful degradation test with message content test
Co-Authored-By: bot_apk <apk@cognition.ai>1 parent 5a8ff06 commit 374528a
4 files changed
Lines changed: 4262 additions & 3848 deletions
File tree
- airbyte_cdk/utils
- unit_tests/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
146 | 141 | | |
147 | | - | |
| 142 | + | |
| 143 | + | |
148 | 144 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 145 | + | |
0 commit comments