Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]",
]

Expand Down
3 changes: 2 additions & 1 deletion tests/test_quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")

Expand Down Expand Up @@ -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)
Expand Down