eigenein / protobuf

Python implementation of Protocol Buffers with dataclass-based schemaʼs
https://eigenein.github.io/protobuf/
MIT License
253 stars 23 forks source link

⬆️ Update all non-major dependencies #164

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 6 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
black (changelog) 24.3.0 -> 24.4.2 age adoption passing confidence
mkdocs-git-revision-date-localized-plugin 1.2.4 -> 1.2.6 age adoption passing confidence
mkdocs-material (changelog) 9.5.18 -> 9.5.29 age adoption passing confidence
mkdocstrings (changelog) 0.24.3 -> 0.25.1 age adoption passing confidence
mypy (source, changelog) 1.9.0 -> 1.11.0 age adoption passing confidence
pillow (changelog) 10.3.0 -> 10.4.0 age adoption passing confidence
pydantic (changelog) 2.7.0 -> 2.8.2 age adoption passing confidence
pytest (changelog) 8.1.1 -> 8.3.1 age adoption passing confidence
ruff (source, changelog) 0.4.1 -> 0.5.4 age adoption passing confidence

Release Notes

psf/black (black) ### [`v24.4.2`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2442) [Compare Source](https://togithub.com/psf/black/compare/24.4.1...24.4.2) This is a bugfix release to fix two regressions in the new f-string parser introduced in 24.4.1. ##### Parser - Fix regression where certain complex f-strings failed to parse ([#​4332](https://togithub.com/psf/black/issues/4332)) ##### Performance - Fix bad performance on certain complex string literals ([#​4331](https://togithub.com/psf/black/issues/4331)) ### [`v24.4.1`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2441) [Compare Source](https://togithub.com/psf/black/compare/24.4.0...24.4.1) ##### Highlights - Add support for the new Python 3.12 f-string syntax introduced by PEP 701 ([#​3822](https://togithub.com/psf/black/issues/3822)) ##### Stable style - Fix crash involving indented dummy functions containing newlines ([#​4318](https://togithub.com/psf/black/issues/4318)) ##### Parser - Add support for type parameter defaults, a new syntactic feature added to Python 3.13 by PEP 696 ([#​4327](https://togithub.com/psf/black/issues/4327)) ##### Integrations - Github Action now works even when `git archive` is skipped ([#​4313](https://togithub.com/psf/black/issues/4313)) ### [`v24.4.0`](https://togithub.com/psf/black/blob/HEAD/CHANGES.md#2440) [Compare Source](https://togithub.com/psf/black/compare/24.3.0...24.4.0) ##### Stable style - Fix unwanted crashes caused by AST equivalency check ([#​4290](https://togithub.com/psf/black/issues/4290)) ##### Preview style - `if` guards in `case` blocks are now wrapped in parentheses when the line is too long. ([#​4269](https://togithub.com/psf/black/issues/4269)) - Stop moving multiline strings to a new line unless inside brackets ([#​4289](https://togithub.com/psf/black/issues/4289)) ##### Integrations - Add a new option `use_pyproject` to the GitHub Action `psf/black`. This will read the Black version from `pyproject.toml`. ([#​4294](https://togithub.com/psf/black/issues/4294))
timvink/mkdocs-git-revision-date-localized-plugin (mkdocs-git-revision-date-localized-plugin) ### [`v1.2.6`](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.6): revision-date-localized v1.2.6 [Compare Source](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.5...v1.2.6) ##### What's Changed - Fix bitbucket CI warning showing up on github actions, by [@​timvink](https://togithub.com/timvink) in [https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/136](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/136) **Full Changelog**: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.5...v1.2.6 ### [`v1.2.5`](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.5): revision-date-localized v1.2.5 [Compare Source](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.4...v1.2.5) #### What's Changed - Fixing `_vars` deprecation warning by [@​dbermuehler](https://togithub.com/dbermuehler) in [https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132) #### New Contributors - [@​dbermuehler](https://togithub.com/dbermuehler) made their first contribution in [https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/132) **Full Changelog**: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.2.4...v1.2.5
squidfunk/mkdocs-material (mkdocs-material) ### [`v9.5.29`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.29): mkdocs-material-9.5.29 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.28...9.5.29) - Updated Galician translations - Fixed [#​7362](https://togithub.com/squidfunk/mkdocs-material/issues/7362): Annotations in figure captions rendering incorrectly Thanks go to [@​mmontes11](https://togithub.com/mmontes11) for their contributions ### [`v9.5.28`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.28): mkdocs-material-9.5.28 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.27...9.5.28) - Fixed [#​7313](https://togithub.com/squidfunk/mkdocs-material/issues/7313): Improved tooltips mounted in sidebar when feature is disabled ### [`v9.5.27`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.27): mkdocs-material-9.5.27 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.26...9.5.27) - Updated Estonian translations Thanks to [@​Eilyre](https://togithub.com/Eilyre) for their contributions ### [`v9.5.26`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.26): mkdocs-material-9.5.26 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.25...9.5.26) - Fixed [#​7232](https://togithub.com/squidfunk/mkdocs-material/issues/7232): Tab switches on scroll when linking tabs (9.5.19 regression) - Fixed [#​7230](https://togithub.com/squidfunk/mkdocs-material/issues/7230): Blog author avatar broken when referring to local file ### [`v9.5.25`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.25): mkdocs-material-9.5.25 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.24...9.5.25) - Fixed [#​7209](https://togithub.com/squidfunk/mkdocs-material/issues/7209): Tags plugin crashing on numeric tags ### [`v9.5.24`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.24): mkdocs-material-9.5.24 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.23...9.5.24) - Fixed [#​7187](https://togithub.com/squidfunk/mkdocs-material/issues/7187): Version selector title rendering issue ### [`v9.5.23`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.23): mkdocs-material-9.5.23 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.22...9.5.23) - Fixed [#​7183](https://togithub.com/squidfunk/mkdocs-material/issues/7183): Edge case in anchor navigation when using instant navigation - Fixed [#​6436](https://togithub.com/squidfunk/mkdocs-material/issues/6436): Version selector not showing version alias ### [`v9.5.22`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.22): mkdocs-material-9.5.22 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.21...9.5.22) - Fixed [#​7170](https://togithub.com/squidfunk/mkdocs-material/issues/7170): Copy button adds empty lines for line spans (9.5.18 regression) - Fixed [#​7160](https://togithub.com/squidfunk/mkdocs-material/issues/7160): Version switching doesn't stay on page (9.5.5 regression) - Fixed [#​5619](https://togithub.com/squidfunk/mkdocs-material/issues/5619): Links in Mermaid.js diagrams not discernible ### [`v9.5.21`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.21): mkdocs-material-9.5.21 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.20...9.5.21) - Fixed [#​7133](https://togithub.com/squidfunk/mkdocs-material/issues/7133): Ensure latest version of Mermaid.js is used - Fixed [#​7125](https://togithub.com/squidfunk/mkdocs-material/issues/7125): Added warning for dotfiles in info plugin Thanks to [@​kamilkrzyskow](https://togithub.com/kamilkrzyskow) for their contributions ### [`v9.5.20`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.20): mkdocs-material-9.5.20 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.19...9.5.20) - Fixed deprecation warning in privacy plugin (9.5.19 regression) - Fixed [#​7119](https://togithub.com/squidfunk/mkdocs-material/issues/7119): Tags plugin emits deprecation warning (9.5.19 regression) - Fixed [#​7118](https://togithub.com/squidfunk/mkdocs-material/issues/7118): Social plugin crashes if fonts are disabled (9.5.19 regression) - Fixed [#​7085](https://togithub.com/squidfunk/mkdocs-material/issues/7085): Social plugin crashes on Windows when downloading fonts ### [`v9.5.19`](https://togithub.com/squidfunk/mkdocs-material/releases/tag/9.5.19): mkdocs-material-9.5.19 [Compare Source](https://togithub.com/squidfunk/mkdocs-material/compare/9.5.18...9.5.19) - Updated MkDocs to 1.6 and limited version to < 2 - Updated Docker image to latest Alpine Linux - Removed `setup.py`, now that GitHub fully understands `pyproject.toml` - Improved interop of social plugin with third-party MkDocs themes - Fixed [#​7099](https://togithub.com/squidfunk/mkdocs-material/issues/7099): Blog reading time not rendered correctly for Japanese - Fixed [#​7097](https://togithub.com/squidfunk/mkdocs-material/issues/7097): Improved resilience of tags plugin when no tags are given - Fixed [#​7090](https://togithub.com/squidfunk/mkdocs-material/issues/7090): Active tab indicator in nested content tabs rendering bug
mkdocstrings/mkdocstrings (mkdocstrings) ### [`v0.25.1`](https://togithub.com/mkdocstrings/mkdocstrings/blob/HEAD/CHANGELOG.md#0251---2024-05-05) [Compare Source](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.25.0...0.25.1) [Compare with 0.25.0](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.25.0...0.25.1) ##### Bug Fixes - Always descend into sub-headings when re-applying their label ([cb86e08](https://togithub.com/mkdocstrings/mkdocstrings/commit/cb86e08bbc5e8057393aa1cd7ca29bc2b40ab5eb) by Timothée Mazzucotelli). [Issue-mkdocstrings/python-158](https://togithub.com/mkdocstrings/python/issues/158) ### [`v0.25.0`](https://togithub.com/mkdocstrings/mkdocstrings/blob/HEAD/CHANGELOG.md#0250---2024-04-27) [Compare Source](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.24.3...0.25.0) [Compare with 0.24.3](https://togithub.com/mkdocstrings/mkdocstrings/compare/0.24.3...0.25.0) ##### Features - Support `once` parameter in logging methods, allowing to log a message only once with a given logger ([1532b59](https://togithub.com/mkdocstrings/mkdocstrings/commit/1532b59a6efd99fed846cf7edfd0b26525700d3f) by Timothée Mazzucotelli). - Support blank line between `::: path` and YAML options ([d799d2f](https://togithub.com/mkdocstrings/mkdocstrings/commit/d799d2f3903bce44fb751f8cf3fb8078d25549da) by Timothée Mazzucotelli). [Issue-450](https://togithub.com/mkdocstrings/mkdocstrings/issues/450) ##### Code Refactoring - Allow specifying name of template loggers ([c5b5f69](https://togithub.com/mkdocstrings/mkdocstrings/commit/c5b5f697c83271d961c7ac795412d6b4964ba2b7) by Timothée Mazzucotelli).
python/mypy (mypy) ### [`v1.11.0`](https://togithub.com/python/mypy/compare/v1.10.1...v1.11.0) [Compare Source](https://togithub.com/python/mypy/compare/v1.10.1...v1.11.0) ### [`v1.10.1`](https://togithub.com/python/mypy/compare/v1.10.0...v1.10.1) [Compare Source](https://togithub.com/python/mypy/compare/v1.10.0...v1.10.1) ### [`v1.10.0`](https://togithub.com/python/mypy/compare/1.9.0...v1.10.0) [Compare Source](https://togithub.com/python/mypy/compare/1.9.0...v1.10.0)
python-pillow/Pillow (pillow) ### [`v10.4.0`](https://togithub.com/python-pillow/Pillow/blob/HEAD/CHANGES.rst#1040-2024-07-01) [Compare Source](https://togithub.com/python-pillow/Pillow/compare/10.3.0...10.4.0) - Raise FileNotFoundError if show_file() path does not exist [#​8178](https://togithub.com/python-pillow/Pillow/issues/8178) \[radarhere] - Improved reading 16-bit TGA images with colour [#​7965](https://togithub.com/python-pillow/Pillow/issues/7965) \[Yay295, radarhere] - Deprecate non-image ImageCms modes [#​8031](https://togithub.com/python-pillow/Pillow/issues/8031) \[radarhere] - Fixed processing multiple JPEG EXIF markers [#​8127](https://togithub.com/python-pillow/Pillow/issues/8127) \[radarhere] - Do not preserve EXIFIFD tag by default when saving TIFF images [#​8110](https://togithub.com/python-pillow/Pillow/issues/8110) \[radarhere] - Added ImageFont.load_default_imagefont() [#​8086](https://togithub.com/python-pillow/Pillow/issues/8086) \[radarhere] - Added Image.WARN_POSSIBLE_FORMATS [#​8063](https://togithub.com/python-pillow/Pillow/issues/8063) \[radarhere] - Remove zero-byte end padding when parsing any XMP data [#​8171](https://togithub.com/python-pillow/Pillow/issues/8171) \[radarhere] - Do not detect Ultra HDR images as MPO [#​8056](https://togithub.com/python-pillow/Pillow/issues/8056) \[radarhere] - Raise SyntaxError specific to JP2 [#​8146](https://togithub.com/python-pillow/Pillow/issues/8146) \[Yay295, radarhere] - Do not use first frame duration for other frames when saving APNG images [#​8104](https://togithub.com/python-pillow/Pillow/issues/8104) \[radarhere] - Consider I;16 pixel size when using a 1 mode mask [#​8112](https://togithub.com/python-pillow/Pillow/issues/8112) \[radarhere] - When saving multiple PNG frames, convert to mode rather than raw mode [#​8087](https://togithub.com/python-pillow/Pillow/issues/8087) \[radarhere] - Added byte support to FreeTypeFont [#​8141](https://togithub.com/python-pillow/Pillow/issues/8141) \[radarhere] - Allow float center for rotate operations [#​8114](https://togithub.com/python-pillow/Pillow/issues/8114) \[radarhere] - Do not read layers immediately when opening PSD images [#​8039](https://togithub.com/python-pillow/Pillow/issues/8039) \[radarhere] - Restore original thread state [#​8065](https://togithub.com/python-pillow/Pillow/issues/8065) \[radarhere] - Read IM and TIFF images as RGB, rather than RGBX [#​7997](https://togithub.com/python-pillow/Pillow/issues/7997) \[radarhere] - Only preserve TIFF IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED [#​7948](https://togithub.com/python-pillow/Pillow/issues/7948) \[radarhere] - Clarify ImageDraw2 error message when size is missing [#​8165](https://togithub.com/python-pillow/Pillow/issues/8165) \[radarhere] - Support unpacking more rawmodes to RGBA palettes [#​7966](https://togithub.com/python-pillow/Pillow/issues/7966) \[radarhere] - Removed support for Qt 5 [#​8159](https://togithub.com/python-pillow/Pillow/issues/8159) \[radarhere] - Improve `ImageFont.freetype` support for XDG directories on Linux [#​8135](https://togithub.com/python-pillow/Pillow/issues/8135) \[mamg22, radarhere] - Improved consistency of XMP handling [#​8069](https://togithub.com/python-pillow/Pillow/issues/8069) \[radarhere] - Use pkg-config to help find libwebp and raqm [#​8142](https://togithub.com/python-pillow/Pillow/issues/8142) \[radarhere] - Accept 't' suffix for libtiff version [#​8126](https://togithub.com/python-pillow/Pillow/issues/8126), [#​8129](https://togithub.com/python-pillow/Pillow/issues/8129) \[radarhere] - Deprecate ImageDraw.getdraw hints parameter [#​8124](https://togithub.com/python-pillow/Pillow/issues/8124) \[radarhere, hugovk] - Added ImageDraw circle() [#​8085](https://togithub.com/python-pillow/Pillow/issues/8085) \[void4, hugovk, radarhere] - Add mypy target to Makefile [#​8077](https://togithub.com/python-pillow/Pillow/issues/8077) \[Yay295] - Added more modes to Image.MODES [#​7984](https://togithub.com/python-pillow/Pillow/issues/7984) \[radarhere] - Deprecate BGR;15, BGR;16 and BGR;24 modes [#​7978](https://togithub.com/python-pillow/Pillow/issues/7978) \[radarhere, hugovk] - Fix ImagingAccess for I;16N on big-endian [#​7921](https://togithub.com/python-pillow/Pillow/issues/7921) \[Yay295, radarhere] - Support reading P mode TIFF images with padding [#​7996](https://togithub.com/python-pillow/Pillow/issues/7996) \[radarhere] - Deprecate support for libtiff < 4 [#​7998](https://togithub.com/python-pillow/Pillow/issues/7998) \[radarhere, hugovk] - Corrected ImageShow UnixViewer command [#​7987](https://togithub.com/python-pillow/Pillow/issues/7987) \[radarhere] - Use functools.cached_property in ImageStat [#​7952](https://togithub.com/python-pillow/Pillow/issues/7952) \[nulano, hugovk, radarhere] - Add support for reading BITMAPV2INFOHEADER and BITMAPV3INFOHEADER [#​7956](https://togithub.com/python-pillow/Pillow/issues/7956) \[Cirras, radarhere] - Support reading CMYK JPEG2000 images [#​7947](https://togithub.com/python-pillow/Pillow/issues/7947) \[radarhere]
pydantic/pydantic (pydantic) ### [`v2.8.2`](https://togithub.com/pydantic/pydantic/releases/tag/v2.8.2): (2024-07-03) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.8.1...v2.8.2) #### What's Changed ##### Fixes - Fix issue with assertion caused by pluggable schema validator by [@​dmontagu](https://togithub.com/dmontagu) in [#​9838](https://togithub.com/pydantic/pydantic/pull/9838) **Full Changelog**: https://github.com/pydantic/pydantic/compare/v2.8.1...v2.8.2 ### [`v2.8.1`](https://togithub.com/pydantic/pydantic/releases/tag/v2.8.1): (2024-07-03) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.8.0...v2.8.1) #### What's Changed ##### Packaging - Bump `ruff` to `v0.5.0` and `pyright` to `v1.1.369` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [https://github.com/pydantic/pydantic/pull/9801](https://togithub.com/pydantic/pydantic/pull/9801) - Bump `pydantic-core` to `v2.20.1`, `pydantic-extra-types` to `v2.9.0` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [https://github.com/pydantic/pydantic/pull/9832](https://togithub.com/pydantic/pydantic/pull/9832) ##### Fixes - Fix breaking change in `to_snake` from v2.7 -> v2.8 by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [https://github.com/pydantic/pydantic/pull/9812](https://togithub.com/pydantic/pydantic/pull/9812) - Fix list constraint json schema application by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [https://github.com/pydantic/pydantic/pull/9818](https://togithub.com/pydantic/pydantic/pull/9818) - Fix issue with assertion caused by pluggable schema validator by [@​dmontagu](https://togithub.com/dmontagu) in [https://github.com/pydantic/pydantic/pull/9838](https://togithub.com/pydantic/pydantic/pull/9838) #### New Contributors - [@​kwint](https://togithub.com/kwint) made their first contribution in [https://github.com/pydantic/pydantic/pull/9787](https://togithub.com/pydantic/pydantic/pull/9787) - [@​seekinginfiniteloop](https://togithub.com/seekinginfiniteloop) made their first contribution in [https://github.com/pydantic/pydantic/pull/9822](https://togithub.com/pydantic/pydantic/pull/9822) **Full Changelog**: https://github.com/pydantic/pydantic/compare/v2.8.0...v2.8.1 ### [`v2.8.0`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v280-2024-07-01) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.7.4...v2.8.0) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.8.0) The code released in v2.8.0 is functionally identical to that of v2.8.0b1. ##### What's Changed ##### Packaging - Update citation version automatically with new releases by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9673](https://togithub.com/pydantic/pydantic/pull/9673) - Bump pyright to `v1.1.367` and add type checking tests for pipeline API by [@​adriangb](https://togithub.com/adriangb) in [#​9674](https://togithub.com/pydantic/pydantic/pull/9674) - Update `pydantic.v1` stub to `v1.10.17` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9707](https://togithub.com/pydantic/pydantic/pull/9707) - General package updates to prep for `v2.8.0b1` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9741](https://togithub.com/pydantic/pydantic/pull/9741) - Bump `pydantic-core` to `v2.20.0` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9745](https://togithub.com/pydantic/pydantic/pull/9745) - Add support for Python 3.13 by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9743](https://togithub.com/pydantic/pydantic/pull/9743) - Update `pdm` version used for `pdm.lock` to v2.16.1 by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9761](https://togithub.com/pydantic/pydantic/pull/9761) - Update to `ruff` `v0.4.8` by [@​Viicos](https://togithub.com/Viicos) in [#​9585](https://togithub.com/pydantic/pydantic/pull/9585) ##### New Features - Experimental: support `defer_build` for `TypeAdapter` by [@​MarkusSintonen](https://togithub.com/MarkusSintonen) in [#​8939](https://togithub.com/pydantic/pydantic/pull/8939) - Implement `deprecated` field in json schema by [@​NeevCohen](https://togithub.com/NeevCohen) in [#​9298](https://togithub.com/pydantic/pydantic/pull/9298) - Experimental: Add pipeline API by [@​adriangb](https://togithub.com/adriangb) in [#​9459](https://togithub.com/pydantic/pydantic/pull/9459) - Add support for programmatic title generation by [@​NeevCohen](https://togithub.com/NeevCohen) in [#​9183](https://togithub.com/pydantic/pydantic/pull/9183) - Implement `fail_fast` feature by [@​uriyyo](https://togithub.com/uriyyo) in [#​9708](https://togithub.com/pydantic/pydantic/pull/9708) - Add `ser_json_inf_nan='strings'` mode to produce valid JSON by [@​josh-newman](https://togithub.com/josh-newman) in [pydantic/pydantic-core#1307](https://togithub.com/pydantic/pydantic-core/pull/1307) ##### Changes - Add warning when "alias" is set in ignored `Annotated` field by [@​nix010](https://togithub.com/nix010) in [#​9170](https://togithub.com/pydantic/pydantic/pull/9170) - Support serialization of some serializable defaults in JSON schema by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9624](https://togithub.com/pydantic/pydantic/pull/9624) - Relax type specification for `__validators__` values in `create_model` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9697](https://togithub.com/pydantic/pydantic/pull/9697) - **Breaking Change:** Improve `smart` union matching logic by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [pydantic/pydantic-core#1322](https://togithub.com/pydantic/pydantic-core/pull/1322) You can read more about our `smart` union matching logic [here](https://docs.pydantic.dev/dev/concepts/unions/#smart-mode). In some cases, if the old behavior is desired, you can switch to `left-to-right` mode and change the order of your `Union` members. ##### Performance ##### Internal Improvements - ⚡️ Speed up `_display_error_loc()` by 25% in `pydantic/v1/error_wrappers.py` by [@​misrasaurabh1](https://togithub.com/misrasaurabh1) in [#​9653](https://togithub.com/pydantic/pydantic/pull/9653) - ⚡️ Speed up `_get_all_json_refs()` by 34% in `pydantic/json_schema.py` by [@​misrasaurabh1](https://togithub.com/misrasaurabh1) in [#​9650](https://togithub.com/pydantic/pydantic/pull/9650) - ⚡️ Speed up `is_pydantic_dataclass()` by 41% in `pydantic/dataclasses.py` by [@​misrasaurabh1](https://togithub.com/misrasaurabh1) in [#​9652](https://togithub.com/pydantic/pydantic/pull/9652) - ⚡️ Speed up `to_snake()` by 27% in `pydantic/alias_generators.py` by [@​misrasaurabh1](https://togithub.com/misrasaurabh1) in [#​9747](https://togithub.com/pydantic/pydantic/pull/9747) - ⚡️ Speed up `unwrap_wrapped_function()` by 93% in `pydantic/_internal/_decorators.py` by [@​misrasaurabh1](https://togithub.com/misrasaurabh1) in [#​9727](https://togithub.com/pydantic/pydantic/pull/9727) ##### Fixes - Replace `__spec__.parent` with `__package__` by [@​hramezani](https://togithub.com/hramezani) in [#​9331](https://togithub.com/pydantic/pydantic/pull/9331) - Fix Outputted Model JSON Schema for `Sequence` type by [@​anesmemisevic](https://togithub.com/anesmemisevic) in [#​9303](https://togithub.com/pydantic/pydantic/pull/9303) - Fix typing of `_frame_depth` by [@​Viicos](https://togithub.com/Viicos) in [#​9353](https://togithub.com/pydantic/pydantic/pull/9353) - Make `ImportString` json schema compatible by [@​amitschang](https://togithub.com/amitschang) in [#​9344](https://togithub.com/pydantic/pydantic/pull/9344) - Hide private attributes (`PrivateAttr`) from `__init__` signature in type checkers by [@​idan22moral](https://togithub.com/idan22moral) in [#​9293](https://togithub.com/pydantic/pydantic/pull/9293) - Make detection of `TypeVar` defaults robust to the CPython `PEP-696` implementation by [@​AlexWaygood](https://togithub.com/AlexWaygood) in [#​9426](https://togithub.com/pydantic/pydantic/pull/9426) - Fix usage of `PlainSerializer` with builtin types by [@​Viicos](https://togithub.com/Viicos) in [#​9450](https://togithub.com/pydantic/pydantic/pull/9450) - Add more robust custom validation examples by [@​ChrisPappalardo](https://togithub.com/ChrisPappalardo) in [#​9468](https://togithub.com/pydantic/pydantic/pull/9468) - Fix ignored `strict` specification for `StringConstraint(strict=False)` by [@​vbmendes](https://togithub.com/vbmendes) in [#​9476](https://togithub.com/pydantic/pydantic/pull/9476) - Use `Self` where possible by [@​Viicos](https://togithub.com/Viicos) in [#​9479](https://togithub.com/pydantic/pydantic/pull/9479) - Do not alter `RootModel.model_construct` signature in the `mypy` plugin by [@​Viicos](https://togithub.com/Viicos) in [#​9480](https://togithub.com/pydantic/pydantic/pull/9480) - Fixed type hint of `validation_context` by [@​OhioDschungel6](https://togithub.com/OhioDschungel6) in [#​9508](https://togithub.com/pydantic/pydantic/pull/9508) - Support context being passed to TypeAdapter's `dump_json`/`dump_python` by [@​alexcouper](https://togithub.com/alexcouper) in [#​9495](https://togithub.com/pydantic/pydantic/pull/9495) - Updates type signature for `Field()` constructor by [@​bjmc](https://togithub.com/bjmc) in [#​9484](https://togithub.com/pydantic/pydantic/pull/9484) - Improve builtin alias generators by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9561](https://togithub.com/pydantic/pydantic/pull/9561) - Fix typing of `TypeAdapter` by [@​Viicos](https://togithub.com/Viicos) in [#​9570](https://togithub.com/pydantic/pydantic/pull/9570) - Add fallback default value for private fields in `__setstate__` of BaseModel by [@​anhpham1509](https://togithub.com/anhpham1509) in [#​9584](https://togithub.com/pydantic/pydantic/pull/9584) - Support `PEP 746` by [@​adriangb](https://togithub.com/adriangb) in [#​9587](https://togithub.com/pydantic/pydantic/pull/9587) - Allow validator and serializer functions to have default values by [@​Viicos](https://togithub.com/Viicos) in [#​9478](https://togithub.com/pydantic/pydantic/pull/9478) - Fix bug with mypy plugin's handling of covariant `TypeVar` fields by [@​dmontagu](https://togithub.com/dmontagu) in [#​9606](https://togithub.com/pydantic/pydantic/pull/9606) - Fix multiple annotation / constraint application logic by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9623](https://togithub.com/pydantic/pydantic/pull/9623) - Respect `regex` flags in validation and json schema by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9591](https://togithub.com/pydantic/pydantic/pull/9591) - Fix type hint on `IpvAnyAddress` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9640](https://togithub.com/pydantic/pydantic/pull/9640) - Allow a field specifier on `__pydantic_extra__` by [@​dmontagu](https://togithub.com/dmontagu) in [#​9659](https://togithub.com/pydantic/pydantic/pull/9659) - Use normalized case for file path comparison by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9737](https://togithub.com/pydantic/pydantic/pull/9737) - Modify constraint application logic to allow field constraints on `Optional[Decimal]` by [@​lazyhope](https://togithub.com/lazyhope) in [#​9754](https://togithub.com/pydantic/pydantic/pull/9754) - `validate_call` type params fix by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9760](https://togithub.com/pydantic/pydantic/pull/9760) - Check all warnings returned by pytest.warns() by [@​s-t-e-v-e-n-k](https://togithub.com/s-t-e-v-e-n-k) in [#​9702](https://togithub.com/pydantic/pydantic/pull/9702) - Reuse `re.Pattern` object in regex patterns to allow for regex flags by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [pydantic/pydantic-core#1318](https://togithub.com/pydantic/pydantic-core/pull/1318) ##### New Contributors - [@​idan22moral](https://togithub.com/idan22moral) made their first contribution in [#​9294](https://togithub.com/pydantic/pydantic/pull/9294) - [@​anesmemisevic](https://togithub.com/anesmemisevic) made their first contribution in [#​9303](https://togithub.com/pydantic/pydantic/pull/9303) - [@​max-muoto](https://togithub.com/max-muoto) made their first contribution in [#​9338](https://togithub.com/pydantic/pydantic/pull/9338) - [@​amitschang](https://togithub.com/amitschang) made their first contribution in [#​9344](https://togithub.com/pydantic/pydantic/pull/9344) - [@​paulmartin91](https://togithub.com/paulmartin91) made their first contribution in [#​9410](https://togithub.com/pydantic/pydantic/pull/9410) - [@​OhioDschungel6](https://togithub.com/OhioDschungel6) made their first contribution in [#​9405](https://togithub.com/pydantic/pydantic/pull/9405) - [@​AlexWaygood](https://togithub.com/AlexWaygood) made their first contribution in [#​9426](https://togithub.com/pydantic/pydantic/pull/9426) - [@​kinuax](https://togithub.com/kinuax) made their first contribution in [#​9433](https://togithub.com/pydantic/pydantic/pull/9433) - [@​antoni-jamiolkowski](https://togithub.com/antoni-jamiolkowski) made their first contribution in [#​9431](https://togithub.com/pydantic/pydantic/pull/9431) - [@​candleindark](https://togithub.com/candleindark) made their first contribution in [#​9448](https://togithub.com/pydantic/pydantic/pull/9448) - [@​nix010](https://togithub.com/nix010) made their first contribution in [#​9170](https://togithub.com/pydantic/pydantic/pull/9170) - [@​tomy0000000](https://togithub.com/tomy0000000) made their first contribution in [#​9457](https://togithub.com/pydantic/pydantic/pull/9457) - [@​vbmendes](https://togithub.com/vbmendes) made their first contribution in [#​9470](https://togithub.com/pydantic/pydantic/pull/9470) - [@​micheleAlberto](https://togithub.com/micheleAlberto) made their first contribution in [#​9471](https://togithub.com/pydantic/pydantic/pull/9471) - [@​ChrisPappalardo](https://togithub.com/ChrisPappalardo) made their first contribution in [#​9468](https://togithub.com/pydantic/pydantic/pull/9468) - [@​blueTurtz](https://togithub.com/blueTurtz) made their first contribution in [#​9475](https://togithub.com/pydantic/pydantic/pull/9475) - [@​WinterBlue16](https://togithub.com/WinterBlue16) made their first contribution in [#​9477](https://togithub.com/pydantic/pydantic/pull/9477) - [@​bittner](https://togithub.com/bittner) made their first contribution in [#​9500](https://togithub.com/pydantic/pydantic/pull/9500) - [@​alexcouper](https://togithub.com/alexcouper) made their first contribution in [#​9495](https://togithub.com/pydantic/pydantic/pull/9495) - [@​bjmc](https://togithub.com/bjmc) made their first contribution in [#​9484](https://togithub.com/pydantic/pydantic/pull/9484) - [@​pjvv](https://togithub.com/pjvv) made their first contribution in [#​9529](https://togithub.com/pydantic/pydantic/pull/9529) - [@​nedbat](https://togithub.com/nedbat) made their first contribution in [#​9530](https://togithub.com/pydantic/pydantic/pull/9530) - [@​gunnellEvan](https://togithub.com/gunnellEvan) made their first contribution in [#​9469](https://togithub.com/pydantic/pydantic/pull/9469) - [@​jaymbans](https://togithub.com/jaymbans) made their first contribution in [#​9531](https://togithub.com/pydantic/pydantic/pull/9531) - [@​MarcBresson](https://togithub.com/MarcBresson) made their first contribution in [#​9534](https://togithub.com/pydantic/pydantic/pull/9534) - [@​anhpham1509](https://togithub.com/anhpham1509) made their first contribution in [#​9584](https://togithub.com/pydantic/pydantic/pull/9584) - [@​K-dash](https://togithub.com/K-dash) made their first contribution in [#​9595](https://togithub.com/pydantic/pydantic/pull/9595) - [@​s-t-e-v-e-n-k](https://togithub.com/s-t-e-v-e-n-k) made their first contribution in [#​9527](https://togithub.com/pydantic/pydantic/pull/9527) - [@​airwoodix](https://togithub.com/airwoodix) made their first contribution in [#​9506](https://togithub.com/pydantic/pydantic/pull/9506) - [@​misrasaurabh1](https://togithub.com/misrasaurabh1) made their first contribution in [#​9653](https://togithub.com/pydantic/pydantic/pull/9653) - [@​AlessandroMiola](https://togithub.com/AlessandroMiola) made their first contribution in [#​9740](https://togithub.com/pydantic/pydantic/pull/9740) - [@​mylapallilavanyaa](https://togithub.com/mylapallilavanyaa) made their first contribution in [#​9746](https://togithub.com/pydantic/pydantic/pull/9746) - [@​lazyhope](https://togithub.com/lazyhope) made their first contribution in [#​9754](https://togithub.com/pydantic/pydantic/pull/9754) - [@​YassinNouh21](https://togithub.com/YassinNouh21) made their first contribution in [#​9759](https://togithub.com/pydantic/pydantic/pull/9759) ### [`v2.7.4`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v274-2024-06-12) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.7.3...v2.7.4) [Github release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.4) ##### What's Changed ##### Packaging - Bump `pydantic.v1` to `v1.10.16` reference by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9639](https://togithub.com/pydantic/pydantic/pull/9639) ##### Fixes - Specify `recursive_guard` as kwarg in `FutureRef._evaluate` by [@​vfazio](https://togithub.com/vfazio) in [#​9612](https://togithub.com/pydantic/pydantic/pull/9612) ### [`v2.7.3`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v273-2024-06-03) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.7.2...v2.7.3) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.3) ##### What's Changed ##### Packaging - Bump `pydantic-core` to `v2.18.4` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9550](https://togithub.com/pydantic/pydantic/pull/9550) ##### Fixes - Fix u style unicode strings in python [@​samuelcolvin](https://togithub.com/samuelcolvin) in [pydantic/jiter#110](https://togithub.com/pydantic/jiter/pull/110) ### [`v2.7.2`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v272-2024-05-28) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.7.1...v2.7.2) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.2) ##### What's Changed ##### Packaging - Bump `pydantic-core` to `v2.18.3` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9515](https://togithub.com/pydantic/pydantic/pull/9515) ##### Fixes - Replace `__spec__.parent` with `__package__` by [@​hramezani](https://togithub.com/hramezani) in [#​9331](https://togithub.com/pydantic/pydantic/pull/9331) - Fix validation of `int`s with leading unary minus by [@​RajatRajdeep](https://togithub.com/RajatRajdeep) in [pydantic/pydantic-core#1291](https://togithub.com/pydantic/pydantic-core/pull/1291) - Fix `str` subclass validation for enums by [@​sydney-runkle](https://togithub.com/sydney-runkle) in \[[pydantic/pydantic-core#1273](https://togithub.com/pydantic/pydantic-core/issues/1273)][https://github.com/pydantic/pydantic-core/pull/1273](https://togithub.com/pydantic/pydantic-core/pull/1273) - Support `BigInt`s in `Literal`s and `Enum`s by [@​samuelcolvin](https://togithub.com/samuelcolvin) in \[[pydantic/pydantic-core#1297](https://togithub.com/pydantic/pydantic-core/issues/1297)][https://github.com/pydantic/pydantic-core/pull/1297](https://togithub.com/pydantic/pydantic-core/pull/1297) - Fix: uuid - allow `str` subclass as input by [@​davidhewitt](https://togithub.com/davidhewitt) in \[[pydantic/pydantic-core#1296](https://togithub.com/pydantic/pydantic-core/issues/1296)][https://github.com/pydantic/pydantic-core/pull/1296](https://togithub.com/pydantic/pydantic-core/pull/1296) ### [`v2.7.1`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v271-2024-04-23) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.7.0...v2.7.1) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.1) ##### What's Changed ##### Packaging - Bump `pydantic-core` to `v2.18.2` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9307](https://togithub.com/pydantic/pydantic/pull/9307) ##### New Features - Ftp and Websocket connection strings support by [@​CherrySuryp](https://togithub.com/CherrySuryp) in [#​9205](https://togithub.com/pydantic/pydantic/pull/9205) ##### Changes - Use field description for RootModel schema description when there is `…` by [@​LouisGobert](https://togithub.com/LouisGobert) in [#​9214](https://togithub.com/pydantic/pydantic/pull/9214) ##### Fixes - Fix `validation_alias` behavior with `model_construct` for `AliasChoices` and `AliasPath` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9223](https://togithub.com/pydantic/pydantic/pull/9223) - Revert `typing.Literal` and import it outside the TYPE_CHECKING block by [@​frost-nzcr4](https://togithub.com/frost-nzcr4) in [#​9232](https://togithub.com/pydantic/pydantic/pull/9232) - Fix `Secret` serialization schema, applicable for unions by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9240](https://togithub.com/pydantic/pydantic/pull/9240) - Fix `strict` application to `function-after` with `use_enum_values` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​9279](https://togithub.com/pydantic/pydantic/pull/9279) - Address case where `model_construct` on a class which defines `model_post_init` fails with `AttributeError` by [@​babygrimes](https://togithub.com/babygrimes) in [#​9168](https://togithub.com/pydantic/pydantic/pull/9168) - Fix `model_json_schema` with config types by [@​NeevCohen](https://togithub.com/NeevCohen) in [#​9287](https://togithub.com/pydantic/pydantic/pull/9287) - Support multiple zeros as an `int` by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [pydantic/pydantic-core#1269](https://togithub.com/pydantic/pydantic-core/pull/1269) - Fix validation of `int`s with leading unary plus by [@​cknv](https://togithub.com/cknv) in [pydantic/pydantic-core#1272](https://togithub.com/pydantic/pydantic-core/pull/1272) - Fix interaction between `extra != 'ignore'` and `from_attributes=True` by [@​davidhewitt](https://togithub.com/davidhewitt) in [pydantic/pydantic-core#1276](https://togithub.com/pydantic/pydantic-core/pull/1276) - Handle error from `Enum`'s `missing` function as `ValidationError` by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [pydantic/pydantic-core#1274](https://togithub.com/pydantic/pydantic-core/pull/1754) - Fix memory leak with `Iterable` validation by [@​davidhewitt](https://togithub.com/davidhewitt) in [pydantic/pydantic-core#1271](https://togithub.com/pydantic/pydantic-core/pull/1751) ##### New Contributors - [@​zzstoatzz](https://togithub.com/zzstoatzz) made their first contribution in [#​9219](https://togithub.com/pydantic/pydantic/pull/9219) - [@​frost-nzcr4](https://togithub.com/frost-nzcr4) made their first contribution in [#​9232](https://togithub.com/pydantic/pydantic/pull/9232) - [@​CherrySuryp](https://togithub.com/CherrySuryp) made their first contribution in [#​9205](https://togithub.com/pydantic/pydantic/pull/9205) - [@​vagenas](https://togithub.com/vagenas) made their first contribution in [#​9268](https://togithub.com/pydantic/pydantic/pull/9268) - [@​ollz272](https://togithub.com/ollz272) made their first contribution in [#​9262](https://togithub.com/pydantic/pydantic/pull/9262) - [@​babygrimes](https://togithub.com/babygrimes) made their first contribution in [#​9168](https://togithub.com/pydantic/pydantic/pull/9168) - [@​swelborn](https://togithub.com/swelborn) made their first contribution in [#​9296](https://togithub.com/pydantic/pydantic/pull/9296) - [@​kf-novi](https://togithub.com/kf-novi) made their first contribution in [#​9236](https://togithub.com/pydantic/pydantic/pull/9236) - [@​lgeiger](https://togithub.com/lgeiger) made their first contribution in [#​9288](https://togithub.com/pydantic/pydantic/pull/9288)
pytest-dev/pytest (pytest) ### [`v8.3.1`](https://togithub.com/pytest-dev/pytest/releases/tag/8.3.1) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.3.0...8.3.1) # pytest 8.3.1 (2024-07-20) The 8.3.0 release failed to include the change notes and docs for the release. This patch release remedies this. There are no other changes. ### [`v8.3.0`](https://togithub.com/pytest-dev/pytest/compare/8.2.2...8.3.0) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.2.2...8.3.0) ### [`v8.2.2`](https://togithub.com/pytest-dev/pytest/releases/tag/8.2.2) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.2.1...8.2.2) # pytest 8.2.2 (2024-06-04) ## Bug Fixes - [#​12355](https://togithub.com/pytest-dev/pytest/issues/12355): Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters. - [#​12367](https://togithub.com/pytest-dev/pytest/issues/12367): Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown. - [#​12381](https://togithub.com/pytest-dev/pytest/issues/12381): Fix possible "Directory not empty" crashes arising from concurent cache dir (`.pytest_cache`) creation. Regressed in pytest 8.2.0. ## Improved Documentation - [#​12290](https://togithub.com/pytest-dev/pytest/issues/12290): Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme. - [#​12356](https://togithub.com/pytest-dev/pytest/issues/12356): Added a subsection to the documentation for debugging flaky tests to mention lack of thread safety in pytest as a possible source of flakyness. - [#​12363](https://togithub.com/pytest-dev/pytest/issues/12363): The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results. ### [`v8.2.1`](https://togithub.com/pytest-dev/pytest/releases/tag/8.2.1) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.2.0...8.2.1) # pytest 8.2.1 (2024-05-19) ## Improvements - [#​12334](https://togithub.com/pytest-dev/pytest/issues/12334): Support for Python 3.13 (beta1 at the time of writing). ## Bug Fixes - [#​12120](https://togithub.com/pytest-dev/pytest/issues/12120): Fix \[PermissionError]{.title-ref} crashes arising from directories which are not selected on the command-line. - [#​12191](https://togithub.com/pytest-dev/pytest/issues/12191): Keyboard interrupts and system exits are now properly handled during the test collection. - [#​12300](https://togithub.com/pytest-dev/pytest/issues/12300): Fixed handling of 'Function not implemented' error under squashfuse_ll, which is a different way to say that the mountpoint is read-only. - [#​12308](https://togithub.com/pytest-dev/pytest/issues/12308): Fix a regression in pytest 8.2.0 where the permissions of automatically-created `.pytest_cache` directories became `rwx------` instead of the expected `rwxr-xr-x`. ## Trivial/Internal Changes - [#​12333](https://togithub.com/pytest-dev/pytest/issues/12333): pytest releases are now attested using the recent [Artifact Attestation](https://github.blog/2024-05-02-introducing-artifact-attestations-now-in-public-beta/) support from GitHub, allowing users to verify the provenance of pytest's sdist and wheel artifacts. ### [`v8.2.0`](https://togithub.com/pytest-dev/pytest/releases/tag/8.2.0) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.1.2...8.2.0) # pytest 8.2.0 (2024-04-27) ## Deprecations - [#​12069](https://togithub.com/pytest-dev/pytest/issues/12069): A deprecation warning is now raised when implementations of one of the following hooks request a deprecated `py.path.local` parameter instead of the `pathlib.Path` parameter which replaced it: - `pytest_ignore_collect`{.interpreted-text role="hook"} - the `path` parameter - use `collection_path` instead. - `pytest_collect_file`{.interpreted-text role="hook"} - the `path` parameter - use `file_path` instead. - `pytest_pycollect_makemodule`{.interpreted-text role="hook"} - the `path` parameter - use `module_path` instead. - `pytest_report_header`{.interpreted-text role="hook"} - the `startdir` parameter - use `start_path` instead. - `pytest_report_collectionfinish`{.interpreted-text role="hook"} - the `startdir` parameter - use `start_path` instead. The replacement parameters are available since pytest 7.0.0. The old parameters will be removed in pytest 9.0.0. See `legacy-path-hooks-deprecated`{.interpreted-text role="ref"} for more details. ## Features - [#​11871](https://togithub.com/pytest-dev/pytest/issues/11871): Added support for reading command line arguments from a file using the prefix character `@`, like e.g.: `pytest @​tests.txt`. The file must have one argument per line. See `Read arguments from file `{.interpreted-text role="ref"} for details. ## Improvements - [#​11523](https://togithub.com/pytest-dev/pytest/issues/11523): `pytest.importorskip`{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised `ImportError`{.interpreted-text role="class"} instead of `ModuleNotFoundError`{.interpreted-text role="class"}. The warning can be suppressed by passing `exc_type=ImportError` to `pytest.importorskip`{.interpreted-text role="func"}. See `import-or-skip-import-error`{.interpreted-text role="ref"} for details. - [#​11728](https://togithub.com/pytest-dev/pytest/issues/11728): For `unittest`-based tests, exceptions during class cleanup (as raised by functions registered with `TestCase.addClassCleanup `{.interpreted-text role="meth"}) are now reported instead of silently failing. - [#​11777](https://togithub.com/pytest-dev/pytest/issues/11777): Text is no longer truncated in the `short test summary info` section when `-vv` is given. - [#​12112](https://togithub.com/pytest-dev/pytest/issues/12112): Improved namespace packages detection when `consider_namespace_packages`{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs). - [#​9502](https://togithub.com/pytest-dev/pytest/issues/9502): Added `PYTEST_VERSION`{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of `pytest.__version__`, and among other things can be used to easily check if code is running from within a pytest run. ## Bug Fixes - [#​12065](https://togithub.com/pytest-dev/pytest/issues/12065): Fixed a regression in pytest 8.0.0 where test classes containing `setup_method` and tests using `@staticmethod` or `@classmethod` would crash with `AttributeError: 'NoneType' object has no attribute 'setup_method'`. Now the `request.instance `{.interpreted-text role="attr"} attribute of tests using `@staticmethod` and `@classmethod` is no longer `None`, but a fresh instance of the class, like in non-static methods. Previously it was `None`, and all fixtures of such tests would share a single `self`. - [#​12135](https://togithub.com/pytest-dev/pytest/issues/12135): Fixed issue where fixtures adding their finalizer multiple times to fixtures they request would cause unreliable and non-intuitive teardown ordering in some instances. - [#​12194](https://togithub.com/pytest-dev/pytest/issues/12194): Fixed a bug with `--importmode=importlib` and `--doctest-modules` where child modules did not appear as attributes in parent modules. - [#​1489](https://togithub.com/pytest-dev/pytest/issues/1489): Fixed some instances where teardown of higher-scoped fixtures was not happening in the reverse order they were initialized in. ## Trivial/Internal Changes - [#​12069](https://togithub.com/pytest-dev/pytest/issues/12069): `pluggy>=1.5.0` is now required. - [#​12167](https://togithub.com/pytest-dev/pytest/issues/12167): `cache `{.interpreted-text role="ref"}: create supporting files (`CACHEDIR.TAG`, `.gitignore`, etc.) in a temporary directory to provide atomic semantics. ### [`v8.1.2`](https://togithub.com/pytest-dev/pytest/releases/tag/8.1.2) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.1.1...8.1.2) # pytest 8.1.2 (2024-04-26) ## Bug Fixes - [#​12114](https://togithub.com/pytest-dev/pytest/issues/12114): Fixed error in `pytest.approx`{.interpreted-text role="func"} when used with \[numpy]{.title-ref} arrays and comparing with other types.
astral-sh/ruff (ruff) ### [`v0.5.4`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#054) [Compare So

Configuration

📅 Schedule: Branch creation - "after 11am on friday" in timezone Europe/Amsterdam, 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Mend Renovate. View repository job log here.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.95%. Comparing base (a2791dc) to head (a90b140).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #164 +/- ## ======================================= Coverage 97.95% 97.95% ======================================= Files 30 30 Lines 784 784 ======================================= Hits 768 768 Misses 16 16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.