diff --git a/CHANGELOG.md b/CHANGELOG.md index f81791cb..c5b7b2b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,33 @@ + +# 0.17.0 — 2024-12-14 + +## Added + +- [attrs](https://www.attrs.org/en/stable/index.html) can now contain unmanaged values + + ``` python + import datetime as dt + import uuid + import attrs + from dirty_equals import IsDatetime + from inline_snapshot import Is, snapshot + + + @attrs.define + class Attrs: + ts: dt.datetime + id: uuid.UUID + + + def test(): + id = uuid.uuid4() + + assert Attrs(dt.datetime.now(), id) == snapshot( + Attrs(ts=IsDatetime(), id=Is(id)) + ) + ``` + # 0.16.0 — 2024-12-12 diff --git a/changelog.d/20241214_071645_15r10nk-git_attrs.md b/changelog.d/20241214_071645_15r10nk-git_attrs.md deleted file mode 100644 index e1e701c8..00000000 --- a/changelog.d/20241214_071645_15r10nk-git_attrs.md +++ /dev/null @@ -1,62 +0,0 @@ - - - -### Added - -- [attrs](https://www.attrs.org/en/stable/index.html) can now contain unmanaged values - - ``` python - import datetime as dt - import uuid - import attrs - from dirty_equals import IsDatetime - from inline_snapshot import Is, snapshot - - - @attrs.define - class Attrs: - ts: dt.datetime - id: uuid.UUID - - - def test(): - id = uuid.uuid4() - - assert Attrs(dt.datetime.now(), id) == snapshot( - Attrs(ts=IsDatetime(), id=Is(id)) - ) - ``` - - - - - diff --git a/pyproject.toml b/pyproject.toml index c7a00ff8..f6be211d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ keywords = [] name = "inline-snapshot" readme = "README.md" requires-python = ">=3.8" -version = "0.16.0" +version = "0.17.0" [project.entry-points.pytest11] inline_snapshot = "inline_snapshot.pytest_plugin" @@ -146,6 +146,7 @@ dependencies=[ [tool.hatch.envs.release.scripts] create=[ "scriv collect", + "- pre-commit run -a", "cz bump" ] publish=[ diff --git a/src/inline_snapshot/__init__.py b/src/inline_snapshot/__init__.py index 1493c44a..171ee9b8 100644 --- a/src/inline_snapshot/__init__.py +++ b/src/inline_snapshot/__init__.py @@ -18,4 +18,4 @@ "Snapshot", ] -__version__ = "0.16.0" +__version__ = "0.17.0"