Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [4.2.0](https://github.com/nhairs/python-json-logger/compare/v4.1.0...v4.2.0) - UNRELEASED

### Changed
- Move development dependencies from `project.optional-dependencies.dev` to `[dependency-groups].dev` (PEP 735). [#46](https://github.com/nhairs/python-json-logger/issues/46)

### Fixed
- Logging a `dict` no longer modifies it. `exc_info` and `stack_info` were previously added to the caller's `dict`. [#66](https://github.com/nhairs/python-json-logger/pull/66)

Thanks @gaoflow
Thanks @gaoflow, @prateek-dagar

## [4.1.0](https://github.com/nhairs/python-json-logger/compare/v4.0.0...v4.1.0) - 2026-03-29

Expand Down
4 changes: 2 additions & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ While the style guide covers detailed conventions, always try to match the style

#### Development Setup

All devlopment tooling can be installed (usually into a virtual environment), using the `dev` optional dependency:
All development tooling can be installed (usually into a virtual environment) using `uv` with the `dev` dependency group:

```shell
pip install -e '.[dev]'`
uv sync --group dev
```

Before creating your pull request you'll want to format your code and run the linters and tests:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ classifiers = [
Homepage = "https://nhairs.github.io/python-json-logger"
GitHub = "https://github.com/nhairs/python-json-logger"

[project.optional-dependencies]
[dependency-groups]
dev = [
## Optional but required for dev
"orjson;implementation_name!='pypy'",
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ envlist = py{310,311,312,313,314}, pypy{310,311}

[testenv]
description = run unit tests
extras = dev
dependency_groups = dev
commands =
pytest tests

[testenv:format]
description = run formatters
extras = dev
dependency_groups = dev
commands =
black src tests

[testenv:lint]
description = run linters
extras = dev
dependency_groups = dev
commands =
validate-pyproject pyproject.toml
black --check --diff src tests
Expand Down
Loading