diff --git a/pyproject.toml b/pyproject.toml index 4a4992c..136d107 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [build-system] requires = [ - "setuptools == 80.9.0", + "setuptools == 80.10.2", "setuptools_scm[toml] == 9.2.2", "frequenz-repo-config[lib] == 0.14.0", ] @@ -50,24 +50,24 @@ dev-flake8 = [ ] dev-formatting = ["black == 25.9.0", "isort == 6.0.1"] dev-mkdocs = [ - "Markdown == 3.9", + "Markdown == 3.10.1", "black == 25.9.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.1", "mkdocstrings[python] == 1.0.0", "mkdocstrings-python == 1.18.2", "frequenz-repo-config[lib] == 0.14.0", ] dev-mypy = [ - "mypy == 1.18.2", - "types-Markdown == 3.9.0.20250906", + "mypy == 1.19.1", + "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.14.0"] +dev-noxfile = ["nox == 2025.11.12", "frequenz-repo-config[lib] == 0.14.0"] 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.9", - "hypothesis == 6.142.5", + "hypothesis == 6.151.4", "frequenz-quantities[marshmallow]", ] diff --git a/tests/test_quantities.py b/tests/test_quantities.py index f316e04..74ad83f 100644 --- a/tests/test_quantities.py +++ b/tests/test_quantities.py @@ -801,6 +801,9 @@ def test_quantity_divided_by_float( ) -> None: """Test the division of all quantities by a float.""" hypothesis.assume(scalar != 0.0) + # pylint thinks the next code is unreachable, probably the assume above is marked as + # no-return or something. + # pylint: disable-next=unreachable quantity = quantity_ctor(quantity_value) expected_value = quantity.base_value / scalar print(f"{quantity=}, {expected_value=}") @@ -836,7 +839,11 @@ def test_quantity_divided_by_self( ) -> None: """Test the division of all quantities by a float.""" hypothesis.assume(divisor_value != 0.0) + # We need to have float here because quantity /= divisor will return a float + # pylint thinks the next code is unreachable, probably the assume above is marked as + # no-return or something. + # pylint: disable-next=unreachable quantity: Quantity | float = quantity_ctor(quantity_value) divisor = quantity_ctor(divisor_value) assert isinstance(quantity, Quantity)