Commit defbe8f
fix(python): 'create' and 'init' use warnings instead of errors for non-fatal pyproject.toml issues (#406)
* fix: use warnings instead of errors for non-fatal pyproject.toml issues
When installPyProjectToml encounters missing structure (no [project]
section, no dependencies array, invalid TOML, or file not found), these
are not true errors — they just mean the pyproject.toml doesn't have the
structure needed to auto-add slack-cli-hooks. The CLI now logs a debug
warning and returns a descriptive "Skipped updating pyproject.toml
because <reason>" message instead of propagating an error. True errors
(file write failures, pip install failures) remain errors.
* test: remove duplicate tests
* Update internal/runtime/python/python.go
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
---------
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>1 parent 4998899 commit defbe8f
2 files changed
+39
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | | - | |
245 | | - | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | | - | |
251 | | - | |
| 252 | + | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
255 | | - | |
256 | | - | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
267 | | - | |
268 | | - | |
| 269 | + | |
| 270 | + | |
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
| |||
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
350 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
358 | | - | |
359 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
360 | 366 | | |
361 | 367 | | |
362 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| |||
240 | 246 | | |
241 | 247 | | |
242 | 248 | | |
243 | | - | |
| 249 | + | |
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
| |||
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
252 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
530 | | - | |
| 538 | + | |
531 | 539 | | |
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
535 | | - | |
536 | | - | |
| 543 | + | |
| 544 | + | |
537 | 545 | | |
538 | | - | |
| 546 | + | |
539 | 547 | | |
540 | 548 | | |
541 | 549 | | |
542 | 550 | | |
543 | | - | |
544 | | - | |
| 551 | + | |
| 552 | + | |
545 | 553 | | |
546 | | - | |
| 554 | + | |
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
551 | | - | |
552 | | - | |
| 559 | + | |
| 560 | + | |
553 | 561 | | |
554 | 562 | | |
555 | 563 | | |
| |||
0 commit comments