pixi
pixi copied to clipboard
chore(ci): Update Pixi (major)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| jsonschema | feature-schema | major | >=3.2.0,<4 -> >=4.25.1,<5 |
| lefthook | feature-lint | major | >=1.13.6,<2 -> >=2.0.4,<3 |
| pillow (source) | feature-docs | major | >=11.3.0,<12 -> >=12,<13 |
| pytest (source) | feature-pytest | major | >=8.4.2,<9 -> >=9.0.1,<10 |
[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
python-jsonschema/jsonschema (jsonschema)
v4.25.1
=======
- Fix an incorrect required argument in the
Validatorprotocol's type annotations (#1396).
v4.25.0
=======
- Add support for the
iriandiri-referenceformats to theformat-nongplextra via the MIT-licensedrfc3987-syntax. They were alread supported by theformatextra. (#1388).
v4.24.1
=======
- Properly escape segments in
ValidationError.json_path(#139).
v4.24.0
=======
- Fix improper handling of
unevaluatedPropertiesin the presence ofadditionalProperties(#1351). - Support for Python 3.8 has been dropped, as it is end-of-life.
v4.23.0
=======
- Do not reorder dictionaries (schemas, instances) that are printed as part of validation errors.
- Declare support for Py3.13
v4.22.0
=======
- Improve
best_match(and thereby error messages fromjsonschema.validate) in cases where there are multiple sibling errors from applyinganyOf/allOf-- i.e. when multiple elements of a JSON array have errors, we now do prefer showing errors from earlier elements rather than simply showing an error for the full array (#1250). - (Micro-)optimize equality checks when comparing for JSON Schema equality by first checking for object identity, as
==would.
v4.21.1
=======
- Slightly speed up the
containskeyword by removing some unnecessary validator (re-)creation.
v4.21.0
=======
- Fix the behavior of
enumin the presence of0or1to properly considerTrueandFalseunequal (#1208). - Special case the error message for
{min,max}{Items,Length,Properties}when they're checking for emptiness rather than true length.
v4.20.0
=======
- Properly consider items (and properties) to be evaluated by
unevaluatedItems(resp.unevaluatedProperties) when behind a$dynamicRefas specified by the 2020 and 2019 specifications. jsonschema.exceptions.ErrorTree.__setitem__is now deprecated. More broadly, in general users ofjsonschemashould never be mutating objects owned by the library.
v4.19.2
=======
- Fix the error message for additional items when used with heterogeneous arrays.
- Don't leak the
additionalItemskeyword into JSON Schema draft 2020-12, where it was replaced byitems.
v4.19.1
=======
- Single label hostnames are now properly considered valid according to the
hostnameformat. This is the behavior specified by the relevant RFC (1123). IDN hostname behavior was already correct.
v4.19.0
=======
- Importing the
Validatorprotocol directly from the package root is deprecated. Import it fromjsonschema.protocols.Validatorinstead. - Automatic retrieval of remote references (which is still deprecated) now properly succeeds even if the retrieved resource does not declare which version of JSON Schema it uses. Such resources are assumed to be 2020-12 schemas. This more closely matches the pre-referencing library behavior.
v4.18.6
=======
- Set a
jsonschemaspecific user agent when automatically retrieving remote references (which is deprecated).
v4.18.4
=======
- Improve the hashability of wrapped referencing exceptions when they contain hashable data.
v4.18.3
=======
- Properly preserve
applicable_validatorsin extended validators. Specifically, validators extending early drafts where siblings of$refwere ignored will properly ignore siblings in the extended validator.
v4.18.2
=======
- Fix an additional regression with the deprecated
jsonschema.RefResolverand pointer resolution.
v4.18.1
=======
- Fix a regression with
jsonschema.RefResolverbased resolution when used in combination with a custom validation dialect (viajsonschema.validators.create).
v4.18.0
=======
This release majorly rehauls the way in which JSON Schema reference resolution is configured. It does so in a way that should be backwards compatible, preserving old behavior whilst emitting deprecation warnings.
jsonschema.RefResolveris now deprecated in favor of the newreferencing library <https://github.com/python-jsonschema/referencing/>_.referencingwill begin in beta, but already is more compliant than the existing$refsupport. This change is a culmination of a meaningful chunk of work to make$refresolution more flexible and more correct. Backwards compatibility should be preserved for existing code which usesRefResolver, though doing so is again now deprecated, and all such use cases should be doable using the new APIs. Please file issues on thereferencingtracker if there is functionality missing from it, or here on thejsonschemaissue tracker if you have issues with existing code not functioning the same, or with figuring out how to change it to usereferencing. In particular, this referencing change includes a change concerning automatic retrieval of remote references (retrievinghttp://foo/barautomatically within a schema). This behavior has always been a potential security risk and counter to the recommendations of the JSON Schema specifications; it has survived this long essentially only for backwards compatibility reasons, and now explicitly produces warnings. Thereferencinglibrary itself will not automatically retrieve references if you interact directly with it, so the deprecated behavior is only triggered if you fully rely on the default$refresolution behavior and also include remote references in your schema, which will still be retrieved during the deprecation period (after which they will become an error).- Support for Python 3.7 has been dropped, as it is nearing end-of-life.
This should not be a "visible" change in the sense that
requires-pythonhas been updated, so users using 3.7 should still receivev4.17.3when installing the library. - On draft 2019-09,
unevaluatedItemsnow properly does not consider items to be evaluated by anadditionalItemsschema ifitemsis missing from the schema, as the specification says in this case thatadditionalItemsmust be completely ignored. - Fix the
dateformat checker on Python 3.11 (when format assertion behavior is enabled), where it was too liberal (#1076). - Speed up validation of
unevaluatedProperties(#1075).
Deprecations
jsonschema.RefResolver-- see above for details on the replacementjsonschema.RefResolutionError-- see above for details on the replacement- relying on automatic resolution of remote references -- see above for details on the replacement
- importing
jsonschema.ErrorTree-- instead import it viajsonschema.exceptions.ErrorTree - importing
jsonschema.FormatError-- instead import it viajsonschema.exceptions.FormatError
v4.17.3
=======
- Fix instantiating validators with cached refs to boolean schemas rather than objects (#1018).
v4.17.1
=======
- The error message when using
unevaluatedPropertieswith a non-trivial schema value (i.e. something other thanfalse) has been improved (#996).
v4.17.0
=======
- The
check_schemamethod onjsonschema.protocols.Validatorinstances now enables format validation by default when run. This can catch some additional invalid schemas (e.g. containing invalid regular expressions) where the issue is indeed uncovered by validating against the metaschema with format validation enabled as an assertion. - The
jsonschemaCLI (along withjsonschema.clithe module) are now deprecated. Usecheck-jsonschemainstead, which can be installed viapip install check-jsonschemaand foundhere <https://github.com/python-jsonschema/check-jsonschema>_.
v4.16.0
=======
- Improve the base URI behavior when resolving a
$refto a resolution URI which is different from the resolved schema's declared$id. - Accessing
jsonschema.draftN_format_checkeris deprecated. Instead, if you want access to the format checker itself, it is exposed asjsonschema.validators.DraftNValidator.FORMAT_CHECKERon anyjsonschema.protocols.Validator.
v4.15.0
=======
- A specific API Reference page is now present in the documentation.
$refon earlier drafts (specifically draft 7 and 6) has been "fixed" to follow the specified behavior when present alongside a sibling$id. Specifically the ID is now properly ignored, and references are resolved against whatever resolution scope was previously relevant.
v4.14.0
=======
FormatChecker.cls_checksis deprecated. UseFormatChecker.checkson an instance ofFormatCheckerinstead.unevaluatedItemshas been fixed for draft 2019. It's nonetheless discouraged to use draft 2019 for any schemas, new or old.- Fix a number of minor annotation issues in
protocols.Validator
v4.9.1
======
- Update some documentation examples to use newer validator releases in their sample code.
v4.9.0
======
- Fix relative
$refresolution when the base URI is a URN or other scheme (#544). pkgutil.resolve_nameis now used to retrieve validators provided on the command line. This function is only available on 3.9+, so 3.7 and 3.8 (which are still supported) now rely on thepkgutil_resolve_name <https://pypi.org/project/pkgutil_resolve_name/>_ backport package. Note however that the CLI itself is due to be deprecated shortly in favor ofcheck-jsonschema <https://github.com/python-jsonschema/check-jsonschema>_.
v4.8.0
======
best_matchno longer traverses intoanyOfandoneOfwhen all of the errors within them seem equally applicable. This should lead to clearer error messages in some cases where no branches were matched.
v4.7.2
======
- Also have
best_matchhandle cases where thetypevalidator is an array.
v4.7.1
======
- Minor tweak of the PyPI hyperlink names
v4.6.2
======
- Fix a number of minor typos in docstrings, mostly private ones (#969)
v4.6.1
======
- Gut the (incomplete) implementation of
recursiveRefon draft 2019. It needs completing, but for now can lead to recursion errors (e.g. #847).
v4.6.0
======
- Fix
unevaluatedPropertiesandunevaluatedItemsfor types they should ignore (#949) jsonschemanow useshatch <https://hatch.pypa.io/>_ for its build process. This should be completely transparent to end-users (and only matters to contributors).
v4.5.1
======
- Revert changes to
$dynamicRefwhich caused a performance regression in v4.5.0
v4.4.0
======
- Add
mypysupport (#892) - Add support for Python 3.11
v4.3.3
======
- Properly report deprecation warnings at the right stack level (#899)
v4.3.2
======
- Additional performance improvements for resolving refs (#896)
v4.3.1
======
- Resolving refs has had performance improvements (#893)
v4.3.0
======
- Fix undesired fallback to brute force container uniqueness check on certain input types (#893)
- Implement a PEP544 Protocol for validator classes (#890)
v4.2.1
======
- Pin
importlib.resourcesfrom below (#877)
v4.2.0
======
- Use
importlib.resourcesto load schemas (#873) - Ensure all elements of arrays are verified for uniqueness by
uniqueItems(#866)
v4.1.2
======
- Fix
dependentSchemasto properly consider non-object instances to be valid (#850)
v4.1.1
======
- Fix
prefixItemsnot indicating which item was invalid within the instance path (#862)
v4.1.0
======
- Add Python 3.10 to the list of supported Python versions
v4.0.1
======
- Fix the declaration of minimum supported Python version (#846)
evilmartians/lefthook (lefthook)
v2.0.4
- fix: glob_matcher jsonschema values
- feat: add optional standard glob matcher (doublestar) (#1188) by @jasonwbarnett
v2.0.3
v2.0.2
- fix: add mutex lock before all git commands (#1178) by @mrexox
v2.0.1
Changelog
python-pillow/Pillow (pillow)
v12.0.0
https://pillow.readthedocs.io/en/stable/releasenotes/12.0.0.html
Removals
- Remove support for FreeType <= 2.9.0 #9159 [@radarhere]
- Drop support for Python 3.9 #9119 [@hugovk]
- Remove deprecations for Pillow 12.0.0 #9053 [@radarhere]
Deprecations
- Deprecate Image._show #9186 [@radarhere]
- Deprecate ImageCmsProfile product_name and product_info #8995 [@lukegb]
Documentation
- ImagingHistogramInstance can use two bands #9251 [@radarhere]
- Update 12.0.0 release notes #9247 [@hugovk]
- Added ImageDraw alpha channel examples #9201 [@radarhere]
- Update Python version #9230 [@radarhere]
- Updated macOS tested Pillow versions #9209 [@radarhere]
- Add GitHub profile link to release notes #9197 [@radarhere]
- Split versionadded info #9190 [@radarhere]
- Document ImageFile.MAXBLOCK #9163 [@radarhere]
- Updated macOS version in CI targets #9157 [@radarhere]
- Fix typos #9135 [@radarhere]
- Added "Colors" to concepts #9067 [@radarhere]
- Update macOS tested Pillow versions #9068 [@radarhere]
- Thanks, folks! #9056 [@aclark4life]
- Setup nit: "fork" should be lowercased #9055 [@aclark4life]
Dependencies
- Update dependency cibuildwheel to v3.2.1 #9246 [@renovate[bot]]
- [pre-commit.ci] pre-commit autoupdate #9233 [@pre-commit-ci[bot]]
- Update harfbuzz to 12.1.0 #9218 [@radarhere]
- Update libtiff to 4.7.1 #9222 [@radarhere]
- Update FreeType to 2.14.1 on macOS and Linux wheels #9217 [@radarhere]
- Update dependency cibuildwheel to v3.2.0 #9219 [@renovate[bot]]
- Update Ghostscript to 10.6.0 #9202 [@radarhere]
- Update openjpeg to 2.5.4 #9215 [@radarhere]
- Update harfbuzz to 11.5.0 #9203 [@radarhere]
- Update dependency mypy to v1.18.2 #9213 [@renovate[bot]]
- Update dependency mypy to v1.18.1 #9207 [@renovate[bot]]
- Update github-actions #9194 [@renovate[bot]]
- Updated harfbuzz to 11.4.5 #9150 [@radarhere]
- Update zlib-ng to 2.2.5 #9140 [@radarhere]
- Update raqm to 0.10.3 #9137 [@radarhere]
- Update libjpeg-turbo to 3.1.2 #9188 [@radarhere]
- [pre-commit.ci] pre-commit autoupdate #9180 [@pre-commit-ci[bot]]
- Update dependency cibuildwheel to v3.1.4 #9164 [@renovate[bot]]
- Update actions/checkout action to v5 #9156 [@renovate[bot]]
- Update actions/download-artifact action to v5 #9141 [@renovate[bot]]
- Updated harfbuzz to 11.3.3 #9103 [@radarhere]
- [pre-commit.ci] pre-commit autoupdate #9131 [@pre-commit-ci[bot]]
- Updated libimagequant to 4.4.0 #9074 [@radarhere]
- Update dependency mypy to v1.17.1 #9130 [@renovate[bot]]
- Update dependency cibuildwheel to v3.1.3 #9129 [@renovate[bot]]
- Update dependency cibuildwheel to v3.1.2 #9118 [@renovate[bot]]
- Updated libpng to 1.6.50 #9058 [@radarhere]
- Update cygwin/cygwin-install-action action to v6 #9108 [@renovate[bot]]
- Update dependency mypy to v1.17.0 #9092 [@renovate[bot]]
- Updated libwebp to 1.6.0 #9082 [@radarhere]
- Update dependency cibuildwheel to v3.0.1 #9075 [@renovate[bot]]
- [pre-commit.ci] pre-commit autoupdate #9073 [@pre-commit-ci[bot]]
Testing
- Check return types #9045 [@radarhere]
- Upgrade from macos-13 #9212 [@radarhere]
- Wheels CI: Check number of expected dists #9239 [@hugovk]
- Assert image type #8845 [@radarhere]
- Test GD transparency #9196 [@radarhere]
- Test mode when saving PPM images #9195 [@radarhere]
- Test unsupported BMP bitfields layout #9193 [@radarhere]
- Update Ghostscript to 10.6.0 #9202 [@radarhere]
- Use monkeypatch #9192 [@radarhere]
- Always check XMLPacket value #9113 [@radarhere]
- Rename variable to not shadow import #9124 [@radarhere]
- Removed unused code #9182 [@radarhere]
- Add has_feature_version helper #9172 [@radarhere]
- Replace print with assert #9171 [@radarhere]
- Add Debian 13 Trixie #9147 [@hugovk]
- Do not import from Tests directory in checks #9143 [@radarhere]
- Improve features test coverage #9077 [@radarhere]
- Remove WebP feature handling #9096 [@radarhere]
- Update for pyroma 5.0 #9093 [@radarhere]
- Improve WmfImagePlugin test coverage #9090 [@radarhere]
- Improve DdsImagePlugin test coverage #9091 [@radarhere]
- Improve ImageMath test coverage #9087 [@radarhere]
- Fix unclosed file warning #9065 [@radarhere]
- Pyroma now supports PEP 639 #9064 [@radarhere]
Type hints
- Install arro3 dependencies when type checking #9254 [@radarhere]
- Check return types #9045 [@radarhere]
- Assert image type #8845 [@radarhere]
- Move imports into TYPE_CHECKING #9123 [@radarhere]
- Remove support for NumPy 1.20 when type checking #9125 [@radarhere]
Other changes
- Use macos-14 for iOS arm64 simulator #9258 [@hugovk]
- Use enums for Modes and RawModes in C #9256 [@radarhere]
- Add ImageText #9098 [@radarhere]
- Shift bits before making value negative #9255 [@radarhere]
- Support saving variable length rational TIFF tags by default #9241 [@radarhere]
- Added four private SGI TIFF tags #9245 [@radarhere]
- Band names for arrow exported images #9099 [@wiredfool]
- Use macos-latest for iOS arm64 simulator #9250 [@radarhere]
- If pasting an image onto itself at a lower position, copy from bottom #8882 [@radarhere]
- Removed unused access for I;32L and I;32B #9238 [@radarhere]
- Corrected scientific-python-nightly-wheels pattern #9252 [@radarhere]
- Run sdist when scheduled, but do not upload to scientific-python-nightly-wheels index #9248 [@radarhere]
- Removed shebang lines and executable flags #9179 [@radarhere]
- Remove Pillow version from PDF comment #9176 [@radarhere]
- Support saving variable length rational TIFF tags #9111 [@radarhere]
- Build Python 3.14 on macOS 10.15 #9234 [@radarhere]
- Test largest CUR cursor #9191 [@radarhere]
- Do not unnecessarily update FLI __offset #9184 [@radarhere]
- Fill alpha channel when quantizing RGB images #9133 [@radarhere]
- Allow RGBA palettes to work with ImageOps.expand() #9138 [@radarhere]
- Fixed loading rotated PCD images #9177 [@radarhere]
- Cast before shifting bits #9236 [@radarhere]
- Use _ensure_mutable() #9200 [@radarhere]
- Seek past BeginBinary data when parsing EPS metadata #9211 [@radarhere]
- Do not allow negative offset with memory mapping #9235 [@radarhere]
- Clear C image when MPO frame image size changes #9208 [@radarhere]
- When converting RGBA to PA, use RGB to P quantization #9153 [@radarhere]
- Remove use of sudo from libavif and raqm install scripts #9231 [@radarhere]
- Load image palette into Python after converting to PA #9152 [@radarhere]
- Check all reserved bytes in FLI header #9183 [@radarhere]
- Limit length of read operation in ImageFont._load_pilfont_data() #9181 [@radarhere]
- Python 3.9 wheels are no longer needed #9214 [@radarhere]
- Remove unused Image _expand() #9227 [@radarhere]
- Updated FreeType to 2.14.1 on Windows #9206 [@radarhere]
- Only deprecate fromarray mode for changing data types #9063 [@radarhere]
- Fix reading RGB and CMYK IPTC images #9088 [@radarhere]
- Install zstd for libtiff on Linux wheels #9097 [@radarhere]
- Improve WalImageFile test coverage #9189 [@radarhere]
- ImageMorph operations must have length 1 #9102 [@radarhere]
- Set correct size for rotated PCD images after opening #9086 [@radarhere]
- Simplify check for GBR width and height #9089 [@radarhere]
- Make in parallel when building libjpeg-turbo and openjpeg for macOS and Linux wheels #9144 [@radarhere]
- Fix ZeroDivisionError in ImageStat #9105 [@radarhere]
- When deleting EXIF IFD tag, delete IFD data #9083 [@radarhere]
- Allow alpha_composite to use LA images #9066 [@radarhere]
- Improve _accept length check #9170 [@radarhere]
- Do not set core to DeferredError #9166 [@radarhere]
- Use macos-14 for iOS arm64 simulator #9161 [@radarhere]
- Make in parallel when building brotli and libavif for macOS and Linux wheels #9142 [@radarhere]
- Use Python 3.14 for gcc problem matching #9134 [@radarhere]
- Add libavif support for iOS #9117 [@freakboy3742]
- Restore pyroma test for iOS #9116 [@freakboy3742]
- Use correct bands for two band histograms #9054 [@radarhere]
- Add support for Python 3.14 #9120 [@hugovk]
- Drop support for PyPy3.10 #9112 [@radarhere]
- Add parallel compile from pybind11 #8990 [@wiredfool]
- Remove unused _save_cjpeg #9084 [@radarhere]
- Ensure dynamic libjpeg libraries are not linked #9081 [@freakboy3742]
- Remove reference to libtiff 3.x #9072 [@radarhere]
- Restored manylinux2014 wheels #9059 [@radarhere]
pytest-dev/pytest (pytest)
v9.0.1
pytest 9.0.1 (2025-11-12)
Bug fixes
- #13895: Restore support for skipping tests via
raise unittest.SkipTest. - #13896: The terminal progress plugin added in pytest 9.0 is now automatically disabled when iTerm2 is detected, it generated desktop notifications instead of the desired functionality.
- #13904: Fixed the TOML type of the verbosity settings in the API reference from number to string.
- #13910: Fixed UserWarning: Do not expect file_or_dir on some earlier Python 3.12 and 3.13 point versions.
Packaging updates and notes for downstreams
- #13933: The tox configuration has been adjusted to make sure the desired
version string can be passed into its
package_envthrough theSETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTESTenvironment variable as a part of the release process -- bywebknjaz.
Contributor-facing changes
- #13891, #13942: The CI/CD part of the release automation is now capable of
creating GitHub Releases without having a Git checkout on
disk -- by
bluetechandwebknjaz. - #13933: The tox configuration has been adjusted to make sure the desired
version string can be passed into its
package_envthrough theSETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTESTenvironment variable as a part of the release process -- bywebknjaz.
v9.0.0
pytest 9.0.0 (2025-11-05)
New features
-
#1367: Support for subtests has been added.
subtests <subtests>are an alternative to parametrization, useful in situations where the parametrization values are not all known at collection time.Example:
def contains_docstring(p: Path) -> bool: """Return True if the given Python file contains a top-level docstring.""" ... def test_py_files_contain_docstring(subtests: pytest.Subtests) -> None: for path in Path.cwd().glob("*.py"): with subtests.test(path=str(path)): assert contains_docstring(path)Each assert failure or error is caught by the context manager and reported individually, giving a clear picture of all files that are missing a docstring.
In addition,
unittest.TestCase.subTestis now also supported.This feature was originally implemented as a separate plugin in pytest-subtests, but since then has been merged into the core.
[!NOTE] This feature is experimental and will likely evolve in future releases. By that we mean that we might change how subtests are reported on failure, but the functionality and how to use it are stable.
-
#13743: Added support for native TOML configuration files.
While pytest, since version 6, supports configuration in
pyproject.tomlfiles under[tool.pytest.ini_options], it does so in an "INI compatibility mode", where all configuration values are treated as strings or list of strings. Now, pytest supports the native TOML data model.In
pyproject.toml, the native TOML configuration is under the[tool.pytest]table.# pyproject.toml [tool.pytest] minversion = "9.0" addopts = ["-ra", "-q"] testpaths = [ "tests", "integration", ]The
[tool.pytest.ini_options]table remains supported, but both tables cannot be used at the same time.If you prefer to use a separate configuration file, or don't use
pyproject.toml, you can usepytest.tomlor.pytest.toml:# pytest.toml or .pytest.toml [pytest] minversion = "9.0" addopts = ["-ra", "-q"] testpaths = [ "tests", "integration", ]The documentation now (sometimes) shows configuration snippets in both TOML and INI formats, in a tabbed interface.
See
config file formatsfor full details. -
#13823: Added a "strict mode" enabled by the
strictconfiguration option.When set to
true, thestrictoption currently enablesstrict_configstrict_markersstrict_parametrization_idsstrict_xfail
The individual strictness options can be explicitly set to override the global
strictsetting.The previously-deprecated
--strictcommand-line flag now enables strict mode.If pytest adds new strictness options in the future, they will also be enabled in strict mode. Therefore, you should only enable strict mode if you use a pinned/locked version of pytest, or if you want to proactively adopt new strictness options as they are added.
See
strict modefor more details. -
#13737: Added the
strict_parametrization_idsconfiguration option.When set, pytest emits an error if it detects non-unique parameter set IDs, rather than automatically making the IDs unique by adding 0, 1, ... to them. This can be particularly useful for catching unintended duplicates.
-
#13072: Added support for displaying test session progress in the terminal tab using the OSC 9;4; ANSI sequence. When pytest runs in a supported terminal emulator like ConEmu, Gnome Terminal, Ptyxis, Windows Terminal, Kitty or Ghostty, you'll see the progress in the terminal tab or window, allowing you to monitor pytest's progress at a glance.
This feature is automatically enabled when running in a TTY. It is implemented as an internal plugin. If needed, it can be disabled as follows:
- On a user level, using
-p no:terminalprogresson the command line or via an environment variablePYTEST_ADDOPTS='-p no:terminalprogress'. - On a project configuration level, using
addopts = "-p no:terminalprogress".
- On a user level, using
-
#478: Support PEP420 (implicit namespace packages) as --pyargs target when
consider_namespace_packagesis true in the config.Previously, this option only impacted package imports, now it also impacts tests discovery.
-
#13678: Added a new
faulthandler_exit_on_timeoutconfiguration option set to "false" by default to let faulthandler interrupt the pytest process after a timeout in case of deadlock.Previously, a faulthandler timeout would only dump the traceback of all threads to stderr, but would not interrupt the pytest process.
-- by
ogrisel. -
#13829: Added support for configuration option aliases via the
aliasesparameter inParser.addini() <pytest.Parser.addini>.Plugins can now register alternative names for configuration options, allowing for more flexibility in configuration naming and supporting backward compatibility when renaming options. The canonical name always takes precedence if both the canonical name and an alias are specified in the configuration file.
Improvements in existing functionality
-
#13330: Having pytest configuration spread over more than one file (for example having both a
pytest.inifile andpyproject.tomlwith a[tool.pytest.ini_options]table) will now print a warning to make it clearer to the user that only one of them is actually used.-- by
sgaist -
#13574: The single argument
--versionno longer loads the entire plugin infrastructure, making it faster and more reliable when displaying only the pytest version.Passing
--versiontwice (e.g.,pytest --version --version) retains the original behavior, showing both the pytest version and plugin information.[!NOTE] Since
--versionis now processed early, it only takes effect when passed directly via the command line. It will not work if set through other mechanisms, such asPYTEST_ADDOPTSoraddopts. -
#13823: Added
strict_xfailas an alias to thexfail_strictoption,strict_configas an alias to the--strict-configflag, andstrict_markersas an alias to the--strict-markersflag. This makes all strictness options consistently have configuration options with the prefixstrict_. -
#13700: --junitxml no longer prints the generated xml file summary at the end of the pytest session when --quiet is given.
-
#13732: Previously, when filtering warnings, pytest would fail if the filter referenced a class that could not be imported. Now, this only outputs a message indicating the problem.
-
#13859: Clarify the error message for pytest.raises() when a regex match fails.
-
#13861: Better sentence structure in a test's expected error message. Previously, the error message would be "expected exception must be <expected>, but got <actual>". Now, it is "Expected <expected>, but got <actual>".
Removals and backward incompatible breaking changes
-
#12083: Fixed a bug where an invocation such as pytest a/ a/b would cause only tests from a/b to run, and not other tests under a/.
The fix entails a few breaking changes to how such overlapping arguments and duplicates are handled:
- <span class="title
Configuration
📅 Schedule: Branch creation - "on tuesday" (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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: pixi.lock
ExecError: Command failed: pixi lock --no-progress --color=never --quiet
Error: × failed to solve requirements of environment 'default' for platform 'osx-
│ 64'
├─▶ × failed to solve the environment
│
╰─▶ Cannot solve the request because of: The following packages are
incompatible
├─ jsonschema >=4.25.1,<5 can be installed with any of the following
options:
│ └─ jsonschema 4.25.1
└─ cffconvert >=2.0.0,<3 cannot be installed because there are no viable
options:
└─ cffconvert 2.0.0 | 2.0.0 | 2.0.0 would require
└─ jsonschema >=3.0,<4, which cannot be installed because there
are no viable options:
└─ jsonschema 3.2.0, which conflicts with the versions reported
above.