Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
31b92ea
fix: skip time truncation for date objects in truncate_datetime
SAY-5 May 24, 2026
89b93f2
Handle negative imaginary parts in number_to_string
koriyoshi2041 May 30, 2026
1b07620
Fix typos in docstrings and comments
Labib-Bin-Salam Jun 9, 2026
6b61aa4
Fix missing type changes for equal-comparing list items (#605)
Sanjays2402 Jul 2, 2026
93c9895
fix(cli): give actionable error when 'deep' runs without cli extra
uttam12331 Jul 3, 2026
8c3377b
Fix mangled __slots__ attribute lost for subclass instances
uttam12331 Jul 5, 2026
2430fc0
Bump soupsieve from 2.8.3 to 2.8.4
dependabot[bot] Jul 10, 2026
6b4c0cd
Fix Delta JSON round-trip crash when orjson is not installed
chuenchen309 Jul 19, 2026
dd5c58e
Merge pull request #597 from SAY-5/fix/truncate-datetime-date
seperman Jul 29, 2026
611fbb3
Merge pull request #598 from koriyoshi2041/fix/number-to-string-negat…
seperman Jul 29, 2026
a5ab083
Merge pull request #600 from Labib-Bin-Salam/fix-docstring-typos
seperman Jul 29, 2026
e84901e
Merge pull request #607 from Sanjays2402/fix/list-item-type-change
seperman Aug 4, 2026
a644e0b
Merge pull request #608 from uttam12331/fix/cli-missing-click-594
seperman Aug 4, 2026
55be560
Merge pull request #609 from uttam12331/fix/slots-mangled-subclass-506
seperman Aug 4, 2026
59acdd9
Merge pull request #610 from qlustered/dependabot/uv/soupsieve-2.8.4
seperman Aug 4, 2026
43da3ef
test: add negative-imaginary complex cases to number_to_string tests
Sanjays2402 Oct 16, 2026
6f8e424
fix: skip truncate_datetime for non-truncatable types
Sanjays2402 Oct 16, 2026
ce12350
Bump certifi from 2026.4.22 to 2026.10.18
dependabot[bot] Oct 30, 2026
13a5aeb
Merge pull request #654 from qlustered/dependabot/uv/certifi-2026.10.18
seperman Nov 13, 2026
b76954c
Add Python 3.15 support and drop Python 3.10
seperman Nov 13, 2026
556b60d
Merge pull request #661 from qlustered/python-3.15-support
seperman Nov 13, 2026
73fde20
Make CLAUDE.md setup-agnostic instead of hardcoding ~/.venvs/deep
seperman Nov 16, 2026
a4d297d
Merge pull request #662 from qlustered/claude-md-portable-env
seperman Nov 16, 2026
819653e
Add sandboxed, monitored test runs for untrusted PRs
seperman Nov 16, 2026
80a34f2
pr_sandbox: share reports with the ai-dev group (PR_SANDBOX_SHARE_GROUP)
seperman Nov 16, 2026
ea8e63a
pr_sandbox: don't flag CPython's stdlib probes when Python lives unde…
seperman Nov 16, 2026
bf796a3
pr-sandbox-monitor: fall back to the PR's tooling when the base preda…
seperman Nov 16, 2026
bc3d3ee
Add make targets for the PR review workflow
seperman Nov 16, 2026
9166db5
Makefile: default target lists the PR review commands in order
seperman Nov 16, 2026
e02466c
pr-review: dontAsk mode so the review never prompts
seperman Nov 16, 2026
5e7b5ef
Merge pull request #663 from qlustered/pr-sandbox
seperman Nov 16, 2026
79cec36
Add iterable_match_keys for key-based list matching per path
seperman Nov 16, 2026
9f713b3
Merge pull request #666 from qlustered/deepdiff-664
seperman Nov 16, 2026
34de727
new uvlock
seperman Nov 16, 2026
da8278b
Merge pull request #667 from qlustered/new-uvlock
seperman Nov 16, 2026
acd313e
Fix pr-review: end claude options with -- so the prompt isn't read as…
seperman Nov 18, 2026
4d1ac41
Merge pull request #613 from chuenchen309/fix/delta-json-opcode-round…
seperman Nov 18, 2026
699ff28
Merge pull request #616 from Sanjays2402/fix/complex-negative-imagina…
seperman Nov 18, 2026
7b4c077
Merge pull request #617 from Sanjays2402/fix/truncate-datetime-date-t…
seperman Nov 18, 2026
1e20c03
Tighten truncate_datetime tests for np.datetime64 and timedelta
seperman Nov 18, 2026
95e240d
moved away from bump2version to bump-my-version
seperman Nov 18, 2026
61db961
9.2.0
seperman Nov 18, 2026
3ec2b9a
Update changelog, authors and what's new for 9.2.0
seperman Nov 18, 2026
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 9.1.0
current_version = 9.2.0
commit = False
tag = False
tag_name = {new_version}
Expand Down
59 changes: 59 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Labels for PRs that touch files which execute code, configure agents, or change CI.
# Applied by .github/workflows/pr-risk-label.yml. Keep in sync with RISKY in
# scripts/pr_sandbox/sandbox-pr.sh. Because that workflow runs on pull_request_target,
# this file is read from the base branch, so a PR can't change its own labels.

'risk: build-config':
- changed-files:
- any-glob-to-any-file:
- pyproject.toml
- uv.lock
- setup.py
- setup.cfg
- '**/requirements*.txt'
- noxfile.py
- tox.ini
- Makefile
- mypy.ini
- 'pyrightconfig.json*'
- .pre-commit-config.yaml
- MANIFEST.in

'risk: test-harness':
- changed-files:
- any-glob-to-any-file:
- '**/conftest.py'
- pytest.ini

'risk: serialized-fixtures':
- changed-files:
- any-glob-to-any-file:
- '**/*.pickle'
- '**/*.pkl'

'risk: ci':
- changed-files:
- any-glob-to-any-file:
- '.github/**'
- .gitattributes
- .gitmodules

'risk: agent-config':
- changed-files:
- any-glob-to-any-file:
- '.claude/**'
- '**/CLAUDE.md'
- '**/CLAUDE.local.md'
- '**/AGENTS.md'
- .mcp.json
- '.cursor/**'
- .cursorrules
- '.vscode/**'
- '.idea/**'
- '.envrc*'
- '.direnvrc*'

'risk: sandbox-tooling':
- changed-files:
- any-glob-to-any-file:
- 'scripts/**'
14 changes: 7 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
build:
runs-on: ubuntu-latest
env:
DEFAULT_PYTHON: '3.14'
DEFAULT_PYTHON: '3.15'
strategy:
matrix:
python-version: ['3.10','3.11','3.12','3.13','3.14']
python-version: ['3.11','3.12','3.13','3.14','3.15']
architecture: ['x64']

steps:
Expand All @@ -26,21 +26,21 @@ jobs:
cache-dependency-path: pyproject.toml

- name: Install nox
run: pip install nox==2025.5.1
run: pip install nox==2026.10.20

- name: Lint with flake8
if: ${{ matrix.python-version == '3.14' }}
if: ${{ matrix.python-version == '3.15' }}
run: |
nox -s flake8 -- deepdiff --count --select=E9,F63,F7,F82 --show-source --statistics
nox -s flake8 -- deepdiff --count --exit-zero --max-complexity=26 --max-line-length=250 --statistics

- name: Test with pytest (no coverage)
if: ${{ matrix.python-version != '3.14' }}
if: ${{ matrix.python-version != '3.15' }}
run: |
nox -s pytest-${{ matrix.python-version }} -- --benchmark-disable tests/

- name: Test with pytest (+ coverage)
if: ${{ matrix.python-version == '3.14' }}
if: ${{ matrix.python-version == '3.15' }}
run: |
nox -s pytest-${{ matrix.python-version }} -- \
--benchmark-disable \
Expand All @@ -49,7 +49,7 @@ jobs:
tests/ --runslow

- name: Upload coverage
if: ${{ matrix.python-version == '3.14' }}
if: ${{ matrix.python-version == '3.15' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/pr-risk-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR risk labels

# Labels PRs that touch build config, the test harness, CI, agent config, pickles or the
# sandbox tooling (see .github/labeler.yml).
#
# pull_request_target runs this file and labeler.yml as they are on the BASE branch, with a
# token that can write labels, so a PR can't edit its way out of being labelled. That is
# only safe because nothing here checks out or runs the PR's code. NEVER add a checkout of
# the PR head, or any step that builds/tests it, to this workflow.
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches: [master, dev]

permissions:
contents: read
pull-requests: write

jobs:
label:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
with:
sync-labels: true
84 changes: 84 additions & 0 deletions .github/workflows/pr-sandbox-monitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: PR sandbox monitor

# Runs the PR's deepdiff/ and tests/ inside bubblewrap, under strace, with canary credentials
# in a fake $HOME and a Python audit hook, and fails if the code reads credentials, tries the
# network, spawns unexpected programs, writes outside its work dir, etc.
# See scripts/pr_sandbox/README.md.
#
# The sandbox tooling, lockfile and pytest config come from the BASE commit. The PR's code
# is checked out separately and only ever executed inside the sandbox.
#
# Caveat: on `pull_request`, GitHub runs this workflow file as the PR modified it, so a PR
# could disable this check. The pr-risk-label workflow (tamper-proof) labels any PR that
# touches .github/ or scripts/, so look for 'risk: ci' / 'risk: sandbox-tooling'.
on:
pull_request:
branches: [master, dev]

permissions:
contents: read

concurrency:
group: pr-sandbox-monitor-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
monitor:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out sandbox tooling from the base commit (trusted)
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.base.sha }}
path: trusted
persist-credentials: false

- name: Check out the PR (untrusted; only executed inside the sandbox)
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}
path: untrusted
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3

- name: Install bubblewrap and strace
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq bubblewrap strace
# Ubuntu 24.04+ restricts unprivileged user namespaces via AppArmor; bwrap needs them.
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true

- name: Run the PR's tests in the sandbox
run: |
tooling=trusted/scripts/pr_sandbox
if [ ! -x "$tooling/run-sandboxed.sh" ]; then
# Bootstrap only: the base commit predates this tooling (i.e. the PR that adds it).
# Fall back to the PR's own copy, which means this run's verdict can't be trusted.
msg="Base commit has no scripts/pr_sandbox; used the PR's own copy, so this verdict is NOT trustworthy."
echo "::warning::$msg"
echo "> **Warning:** $msg" >> "$GITHUB_STEP_SUMMARY"
tooling=untrusted/scripts/pr_sandbox
fi
"$tooling/run-sandboxed.sh" \
--monitor-only --python 3.15 --out "$RUNNER_TEMP/pr-sandbox" untrusted

- name: Publish report
if: always()
run: |
report="$RUNNER_TEMP/pr-sandbox/report"
if [ -f "$report/report.md" ]; then cat "$report/report.md" >> "$GITHUB_STEP_SUMMARY"; fi
gzip -f "$report/strace.log" 2>/dev/null || true

- name: Upload logs
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: pr-sandbox-report
path: |
${{ runner.temp }}/pr-sandbox/report/
${{ runner.temp }}/pr-sandbox/audit/
retention-days: 14
if-no-files-found: ignore
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ pyrightconfig.json

# direnv file
.envrc

# Personal Claude Code instructions
CLAUDE.local.md
8 changes: 8 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,11 @@ Authors in order of the timeline of their contributions:
- [akshat62](https://github.com/akshat62) for adding Fraction numeric support.
- [akshat62](https://github.com/akshat62) for adding wildcard/glob pattern support for `exclude_paths` and `include_paths`.
- [mgorny](https://github.com/mgorny) for adding missing files to sdist and removing obsolete `MANIFEST.in`.
- [Sanjays2402](https://github.com/Sanjays2402) for fixing missing type changes between equal-comparing list items (e.g. `[2]` vs `[2.0]`).
- [SAY-5](https://github.com/SAY-5) for skipping time truncation for `date` objects in `truncate_datetime`.
- [koriyoshi2041](https://github.com/koriyoshi2041) for handling negative imaginary parts in `number_to_string`.
- [Labib-Bin-Salam](https://github.com/Labib-Bin-Salam) for fixing typos in docstrings and comments.
- [uttam12331](https://github.com/uttam12331) for fixing mangled `__slots__` attributes lost for subclass instances.
- [uttam12331](https://github.com/uttam12331) for giving an actionable error when `deep` runs without the `cli` extra.
- [chuenchen309](https://github.com/chuenchen309) for fixing Delta JSON round-trip crash when orjson is not installed.
- [Sanjays2402](https://github.com/Sanjays2402) for fixing `truncate_datetime` for `timedelta` and `np.datetime64`, and adding negative-imaginary `number_to_string` tests.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# DeepDiff Change log

- v9-2-0
- Added `iterable_match_keys` to match list items by key per path, e.g. `{"root['orders']": "order_id", "root['orders'][*]['lines']": ("sku", "warehouse")}`. Inserted, removed and reordered records are reported per record at real list indexes, and `Delta` round-trips (#664)
- Support for Python 3.15
- Dropping support for Python 3.10, which reached end-of-life in October 2026
- Fixed `iterable_compare_func` dropping an added item whose content equals an item that was already matched, e.g. `[{"id": 1}]` vs `[{"id": 1}, {"id": 1}]` returned `{}` (#665)
- Fixed missing type changes between equal-comparing items inside ordered iterables, e.g. `DeepDiff([2], [2.0])` now reports the `int` → `float` change like `DeepDiff(2, 2.0)` already does (#605) thanks to [Sanjays2402](https://github.com/Sanjays2402)
- Fixed `truncate_datetime` crashing on non-truncatable types: it now applies only to `datetime.datetime` and `datetime.time` objects, so `datetime.date`, `timedelta` and `np.datetime64` values are compared exactly instead of raising `AttributeError` thanks to [SAY-5](https://github.com/SAY-5) and [Sanjays2402](https://github.com/Sanjays2402)
- Fixed `number_to_string` producing an invalid string such as `1.0+-1.0j` for complex numbers with a negative imaginary part, which crashed e.g. `DeepHash(1-1j, significant_digits=3)` (#551) thanks to [koriyoshi2041](https://github.com/koriyoshi2041) and [Sanjays2402](https://github.com/Sanjays2402)
- Fixed Delta JSON round-trip crashing with `TypeError` when orjson is not installed, for list diffs that use iterable opcodes thanks to [chuenchen309](https://github.com/chuenchen309)
- Fixed `_dict_from_slots` dropping a parent-declared mangled `__slots__` attribute for a subclass instance (#506) thanks to [uttam12331](https://github.com/uttam12331)
- The `deep` command now exits with an actionable message (`pip install "deepdiff[cli]"`) instead of a `ModuleNotFoundError` traceback when the `cli` extra is not installed (#594) thanks to [uttam12331](https://github.com/uttam12331)
- Fixed typos in docstrings and comments thanks to [Labib-Bin-Salam](https://github.com/Labib-Bin-Salam)
- Updated dependencies, and switched release tooling from bump2version to bump-my-version

- v9-1-0
- Added multiprocessing support for DeepDiff: parallel distance computation and parallel subtree diffing with aggregated worker stats, deterministic ordering, and automatic fallback to serial when unsafe (e.g. `custom_operators`, `*_obj_callback`, `ignore_order_func`)
- Added wildcard/glob pattern support for `exclude_paths` and `include_paths` thanks to [akshat62](https://github.com/akshat62)
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors:
given-names: "Sep"
orcid: "https://orcid.org/0009-0009-5828-4345"
title: "DeepDiff"
version: 9.1.0
version: 9.2.0
date-released: 2026
url: "https://github.com/seperman/deepdiff"
Loading
Loading