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]", ] 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)