rcmdnk / pyproject-pre-commit

pre-commit settings for python project with pyproject.toml
https://pypi.org/project/pyproject-pre-commit/
Apache License 2.0
5 stars 0 forks source link

fix(deps): update all non-major dependencies #142

Closed renovate[bot] closed 6 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.4.0 -> 24.4.2 age adoption passing confidence
flake8-bugbear (changelog) 24.4.21 -> 24.4.26 age adoption passing confidence
mypy (source, changelog) 1.9.0 -> 1.10.0 age adoption passing confidence
pre-commit 3.5.0 -> 3.7.0 age adoption passing confidence
pytest (changelog) 8.1.1 -> 8.2.0 age adoption passing confidence
pytest-xdist (changelog) 3.5.0 -> 3.6.1 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))
PyCQA/flake8-bugbear (flake8-bugbear) ### [`v24.4.26`](https://togithub.com/PyCQA/flake8-bugbear/releases/tag/24.4.26): 24.4.6 [Compare Source](https://togithub.com/PyCQA/flake8-bugbear/compare/24.4.21...24.4.26) - B909: Fix false positive affecting containers of mutables ([#​469](https://togithub.com/PyCQA/flake8-bugbear/issues/469))
python/mypy (mypy) ### [`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)
pre-commit/pre-commit (pre-commit) ### [`v3.7.0`](https://togithub.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#370---2024-03-24) [Compare Source](https://togithub.com/pre-commit/pre-commit/compare/v3.6.2...v3.7.0) \================== ##### Features - Use a tty for `docker` and `docker_image` hooks when `--color` is specified. - [#​3122](https://togithub.com/pre-commit/pre-commit/issues/3122) PR by [@​glehmann](https://togithub.com/glehmann). ##### Fixes - Fix `fail_fast` for individual hooks stopping when previous hooks had failed. - [#​3167](https://togithub.com/pre-commit/pre-commit/issues/3167) issue by [@​tp832944](https://togithub.com/tp832944). - [#​3168](https://togithub.com/pre-commit/pre-commit/issues/3168) PR by [@​asottile](https://togithub.com/asottile). ##### Updating - The per-hook behaviour of `fail_fast` was fixed. If you want the pre-3.7.0 behaviour, add `fail_fast: true` to all hooks before the last `fail_fast` hook. ### [`v3.6.2`](https://togithub.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#362---2024-02-18) [Compare Source](https://togithub.com/pre-commit/pre-commit/compare/v3.6.1...v3.6.2) \================== ##### Fixes - Fix building golang hooks during `git commit --all`. - [#​3130](https://togithub.com/pre-commit/pre-commit/issues/3130) PR by [@​asottile](https://togithub.com/asottile). - [#​2722](https://togithub.com/pre-commit/pre-commit/issues/2722) issue by [@​pestanko](https://togithub.com/pestanko) and [@​matthewhughes934](https://togithub.com/matthewhughes934). ### [`v3.6.1`](https://togithub.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#361---2024-02-10) [Compare Source](https://togithub.com/pre-commit/pre-commit/compare/v3.6.0...v3.6.1) \================== ##### Fixes - Remove `PYTHONEXECUTABLE` from environment when running. - [#​3110](https://togithub.com/pre-commit/pre-commit/issues/3110) PR by [@​untitaker](https://togithub.com/untitaker). - Handle staged-files-only with only a crlf diff. - [#​3126](https://togithub.com/pre-commit/pre-commit/issues/3126) PR by [@​asottile](https://togithub.com/asottile). - issue by [@​tyyrok](https://togithub.com/tyyrok). ### [`v3.6.0`](https://togithub.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#360---2023-12-09) [Compare Source](https://togithub.com/pre-commit/pre-commit/compare/v3.5.0...v3.6.0) \================== ##### Features - Check `minimum_pre_commit_version` first when parsing configs. - [#​3092](https://togithub.com/pre-commit/pre-commit/issues/3092) PR by [@​asottile](https://togithub.com/asottile). ##### Fixes - Fix deprecation warnings for `importlib.resources`. - [#​3043](https://togithub.com/pre-commit/pre-commit/issues/3043) PR by [@​asottile](https://togithub.com/asottile). - Fix deprecation warnings for rmtree. - [#​3079](https://togithub.com/pre-commit/pre-commit/issues/3079) PR by [@​edgarrmondragon](https://togithub.com/edgarrmondragon). ##### Updating - Drop support for python<3.9. - [#​3042](https://togithub.com/pre-commit/pre-commit/issues/3042) PR by [@​asottile](https://togithub.com/asottile). - [#​3093](https://togithub.com/pre-commit/pre-commit/issues/3093) PR by [@​asottile](https://togithub.com/asottile).
pytest-dev/pytest (pytest) ### [`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.
pytest-dev/pytest-xdist (pytest-xdist) ### [`v3.6.1`](https://togithub.com/pytest-dev/pytest-xdist/blob/HEAD/CHANGELOG.rst#pytest-xdist-361-2024-04-28) [Compare Source](https://togithub.com/pytest-dev/pytest-xdist/compare/v3.6.0...v3.6.1) \=============================== ## Bug Fixes - `#​1071 `\_: Add backward compatibility for deadlock issue with the `execnet` new `main_thread_only` "execmodel" triggered when pytest-cov accesses rinfo. ### [`v3.6.0`](https://togithub.com/pytest-dev/pytest-xdist/blob/HEAD/CHANGELOG.rst#pytest-xdist-360-2024-04-19) [Compare Source](https://togithub.com/pytest-dev/pytest-xdist/compare/v3.5.0...v3.6.0) \=============================== This release was YANKED due to a regression fixed in 3.6.1. ## Features - `#​1027 `\_:`pytest-xdist` workers now always execute the tests in the main thread. Previously some tests might end up executing in a separate thread other than `main` in the workers, due to some internal ` execnet`` details. This can cause problems specially with async frameworks where the event loop is running in the ``main`` thread (for example `[#​620](https://togithub.com/pytest-dev/pytest-xdist/issues/620) [#​620](https://togithub.com/pytest-dev/pytest-xdist/issues/620)\`\__). ## Bug Fixes - `#​1024 `\_: Added proper handling of `shouldstop` (such as set by `--max-fail`) and `shouldfail` conditions in workers. Previously, a worker might have continued executing further tests before the controller could terminate the session. - `#​1028 `\_: Fixed compatibility issue between `looponfail` and editable installs. - `#​620 `\_: Use the new `main_thread_only` `execnet` "execmodel" so that code which expects to only run in the main thread will now work as expected. - `#​937 `\_: Fixed a bug where plugin would raise an incompatibility error with `--pdb` despite using `-n0`. ## Removals - `#​1053 `\_: Dropped support for Python 3.7. - `#​1057 `\_: pytest>=7.0.0 is now required. execnet>=2.1.0 is now required. ## Trivial Changes - `#​1020 `\_: pytest-xdist's `setup.py` file is removed. If you relied on this file, e.g. to install pytest using `setup.py install`, please see `Why you shouldn't invoke setup.py directly `\_ for alternatives. - `#​1057 `\_: The internals of pytest-xdist are now fully typed. The typing is not exposed yet. - `#​996 `\_: Adjusted license file format and content to ensure security scanners will identity the license.

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.