From 0f1b8e0533158d9a1df956f9f9356e4d5c9ac757 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Dec 2025 09:33:09 +0000 Subject: [PATCH 1/2] Build(deps-dev): Bump the minor group with 8 updates Bumps the minor group with 8 updates: | Package | From | To | | --- | --- | --- | | [black](https://github.com/psf/black) | `25.9.0` | `25.11.0` | | [markdown](https://github.com/Python-Markdown/markdown) | `3.9` | `3.10` | | [mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin) | `1.4.1` | `1.5.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.6.23` | `9.7.0` | | [mypy](https://github.com/python/mypy) | `1.18.2` | `1.19.0` | | [types-markdown](https://github.com/typeshed-internal/stub_uploader) | `3.9.0.20250906` | `3.10.0.20251106` | | [nox](https://github.com/wntrblm/nox) | `2025.10.16` | `2025.11.12` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.142.5` | `6.148.5` | Updates `black` from 25.9.0 to 25.11.0 - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/25.9.0...25.11.0) Updates `markdown` from 3.9 to 3.10 - [Release notes](https://github.com/Python-Markdown/markdown/releases) - [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md) - [Commits](https://github.com/Python-Markdown/markdown/compare/3.9.0...3.10.0) Updates `mkdocs-macros-plugin` from 1.4.1 to 1.5.0 - [Release notes](https://github.com/fralau/mkdocs_macros_plugin/releases) - [Changelog](https://github.com/fralau/mkdocs-macros-plugin/blob/master/CHANGELOG.md) - [Commits](https://github.com/fralau/mkdocs_macros_plugin/compare/v1.4.1...v1.5.0) Updates `mkdocs-material` from 9.6.23 to 9.7.0 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.6.23...9.7.0) Updates `mypy` from 1.18.2 to 1.19.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.18.2...v1.19.0) Updates `types-markdown` from 3.9.0.20250906 to 3.10.0.20251106 - [Commits](https://github.com/typeshed-internal/stub_uploader/commits) Updates `nox` from 2025.10.16 to 2025.11.12 - [Release notes](https://github.com/wntrblm/nox/releases) - [Changelog](https://github.com/wntrblm/nox/blob/main/CHANGELOG.md) - [Commits](https://github.com/wntrblm/nox/compare/2025.10.16...2025.11.12) Updates `hypothesis` from 6.142.5 to 6.148.5 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.142.5...hypothesis-python-6.148.5) --- updated-dependencies: - dependency-name: black dependency-version: 25.11.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: markdown dependency-version: '3.10' dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: mkdocs-macros-plugin dependency-version: 1.5.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: mkdocs-material dependency-version: 9.7.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: mypy dependency-version: 1.19.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: types-markdown dependency-version: 3.10.0.20251106 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: nox dependency-version: 2025.11.12 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: hypothesis dependency-version: 6.148.5 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e7232c2..3e86fa8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,26 +48,26 @@ dev-flake8 = [ "pydoclint == 0.8.3", "pydocstyle == 6.3.0", ] -dev-formatting = ["black == 25.9.0", "isort == 6.0.1"] +dev-formatting = ["black == 25.12.0", "isort == 6.0.1"] dev-mkdocs = [ - "Markdown == 3.9", - "black == 25.9.0", + "Markdown == 3.10", + "black == 25.12.0", "mike == 2.1.3", "mkdocs-gen-files == 0.5.0", "mkdocs-literate-nav == 0.6.2", - "mkdocs-macros-plugin == 1.4.1", - "mkdocs-material == 9.6.23", + "mkdocs-macros-plugin == 1.5.0", + "mkdocs-material == 9.7.0", "mkdocstrings[python] == 1.0.0", "mkdocstrings-python == 1.18.2", "frequenz-repo-config[lib] == 0.13.8", ] dev-mypy = [ - "mypy == 1.18.2", - "types-Markdown == 3.9.0.20250906", + "mypy == 1.19.0", + "types-Markdown == 3.10.0.20251106", # For checking the noxfile, docs/ script, and tests "frequenz-quantities[dev-mkdocs,dev-noxfile,dev-pytest,marshmallow]", ] -dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[lib] == 0.13.8"] +dev-noxfile = ["nox == 2025.11.12", "frequenz-repo-config[lib] == 0.13.8"] dev-pylint = [ # dev-pytest already defines a dependency to pylint because of the examples # For checking the noxfile, docs/ script, and tests @@ -80,7 +80,7 @@ dev-pytest = [ "pytest-mock == 3.15.1", "pytest-asyncio == 1.3.0", "async-solipsism == 0.8", - "hypothesis == 6.142.5", + "hypothesis == 6.148.7", "frequenz-quantities[marshmallow]", ] From 2517c1dedc046377a7db00e48a46fe538e9acbb4 Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Tue, 16 Dec 2025 11:52:30 +0100 Subject: [PATCH 2/2] Fix pylint false positive for unreachable code after hypothesis.assume() Signed-off-by: Mathias L. Baumann --- tests/test_quantities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_quantities.py b/tests/test_quantities.py index f316e04..cc2fc13 100644 --- a/tests/test_quantities.py +++ b/tests/test_quantities.py @@ -801,7 +801,7 @@ def test_quantity_divided_by_float( ) -> None: """Test the division of all quantities by a float.""" hypothesis.assume(scalar != 0.0) - quantity = quantity_ctor(quantity_value) + quantity = quantity_ctor(quantity_value) # pylint: disable=unreachable expected_value = quantity.base_value / scalar print(f"{quantity=}, {expected_value=}") @@ -836,6 +836,7 @@ def test_quantity_divided_by_self( ) -> None: """Test the division of all quantities by a float.""" hypothesis.assume(divisor_value != 0.0) + # pylint: disable=unreachable # We need to have float here because quantity /= divisor will return a float quantity: Quantity | float = quantity_ctor(quantity_value) divisor = quantity_ctor(divisor_value)