Commit 2c63405
authored
fix(deps): Update dependency structlog to v25.5.0 (#355)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [structlog](https://redirect.github.com/hynek/structlog) ([changelog](https://redirect.github.com/hynek/structlog/blob/main/CHANGELOG.md)) | minor | `==25.4.0` -> `==25.5.0` |
---
### Release Notes
<details>
<summary>hynek/structlog (structlog)</summary>
### [`v25.5.0`](https://redirect.github.com/hynek/structlog/blob/HEAD/CHANGELOG.md#2550---2025-10-27)
[Compare Source](https://redirect.github.com/hynek/structlog/compare/25.4.0...25.5.0)
##### Deprecated
- `structlog.dev.ConsoleRenderer()`'s *pad_event* argument has been renamed to *pad_event_to* to differentiate it from the boolean *pad_level* argument.
*pad_event* is now deprecated.
##### Added
- Added `structlog.dev.ConsoleRenderer.get_active()` that returns the currently active `structlog.dev.ConsoleRenderer()`.
[#​749](https://redirect.github.com/hynek/structlog/pull/749)
- `structlog.dev.ConsoleRenderer()` now supports setting the `exception_formatter` attribute.
You can now disable the pretty-printing of exceptions by setting it to `structlog.dev.plain_traceback`:
```python
cr = structlog.dev.ConsoleRenderer.get_active()
cr.exception_formatter = structlog.dev.plain_traceback
```
Same goes for *sort_keys*, *columns*, *colors*, *force_colors*, *level_styles*, *pad_event_to*, *event_key*, *timestamp_key*, and *repr_native_str*.
[#​749](https://redirect.github.com/hynek/structlog/pull/749)
[#​756](https://redirect.github.com/hynek/structlog/pull/756)
[#​757](https://redirect.github.com/hynek/structlog/pull/757)
[#​759](https://redirect.github.com/hynek/structlog/pull/759)
- Added `structlog.dev.ConsoleRenderer.get_default_column_styles()` for reuse the default column styles.
[#​741](https://redirect.github.com/hynek/structlog/pull/741)
- `structlog.testing.capture_logs()` now optionally accepts *processors* to apply before capture.
[#​728](https://redirect.github.com/hynek/structlog/pull/728)
- `structlog.dev.RichTracebackFormatter` now exposes the upstream *code_width* parameter.
Default *width* is now `None` for full terminal width.
Full terminal width is now handled by Rich itself, bringing support for reflow and `COLUMN` environment variable.
Passing `-1` for *width* is now deprecated and automatically replaced by `None`.
[#​717](https://redirect.github.com/hynek/structlog/pull/717)
- Native loggers now allow the passing of a dictionary for dictionary-based interpolation `log.info("hello %(name)s!", {"name": "world"})`.
[#​748](https://redirect.github.com/hynek/structlog/pull/748)
- On Python 3.11+, `structlog.processors.CallsiteParameterAdder` now supports `CallsiteParameter.QUAL_NAME` that adds the qualified name of the callsite, including scope and class names.
This is only available for *structlog*-originated events since the standard library has no equivalent.
- `structlog.stdlib.LoggerFactory` now supports the *stacklevel* parameter.
[#​763](https://redirect.github.com/hynek/structlog/pull/763)
##### Changed
- `structlog.dev.rich_traceback()` now throws a more helpful error when Rich is missing.
[#​735](https://redirect.github.com/hynek/structlog/pull/735)
##### Fixed
- `structlog.processors.MaybeTimeStamper` now respects the *key* argument when determining whether to overwrite the timestamp field.
[#​747](https://redirect.github.com/hynek/structlog/pull/747)
- `structlog.tracebacks.extract()` no longer raises a `RecursionError` when the cause chain of an exception contains itself.
[#​739](https://redirect.github.com/hynek/structlog/pull/739)
- Default config now respects `FORCE_COLOR` on Windows.
[#​758](https://redirect.github.com/hynek/structlog/pull/758)
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4yMi4xIiwidXBkYXRlZEluVmVyIjoiNDAuMjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIl19-->1 parent ac7b246 commit 2c63405
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments