Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docs/_scripts/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _get_docstring(symbol: str) -> str:
return docstring.value

# The decorator makes the function untyped
@env.macro # type: ignore[misc]
@env.macro # type: ignore[untyped-decorator]
def docstring_summary(symbol: str) -> str:
"""Get the summary of a Python symbol.

Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dev-flake8 = [
]
dev-formatting = ["black == 25.9.0", "isort == 7.0.0"]
dev-mkdocs = [
"Markdown == 3.9",
"Markdown == 3.10.2",
"black == 25.9.0",
"frequenz-repo-config[lib] == 0.17.0",
"markdown-callouts == 0.4.0",
Expand All @@ -55,8 +55,8 @@ dev-mkdocs = [
"mkdocs-gen-files == 0.6.1",
"mkdocs-include-markdown-plugin == 7.2.2",
"mkdocs-literate-nav == 0.6.3",
"mkdocs-macros-plugin == 1.4.1",
"mkdocs-material == 9.6.23",
"mkdocs-macros-plugin == 1.5.0",
"mkdocs-material == 9.7.6",
"mkdocstrings[python] == 0.30.1",
"mkdocstrings-python == 1.18.2",
"pymdownx-superfence-filter-lines == 0.1.0",
Expand All @@ -65,8 +65,8 @@ dev-mkdocs = [
dev-mypy = [
# For checking the noxfile, docs/ script, and tests
"frequenz-channels[dev-mkdocs,dev-noxfile,dev-pytest]",
"mypy == 1.18.2",
"types-Markdown == 3.9.0.20250906",
"mypy == 1.20.1",
"types-Markdown == 3.10.2.20260408",
]
dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[lib] == 0.17.0"]
dev-pylint = [
Expand All @@ -77,7 +77,7 @@ dev-pylint = [
dev-pytest = [
"async-solipsism == 0.9",
"frequenz-repo-config[extra-lint-examples] == 0.17.0",
"hypothesis == 6.143.0",
"hypothesis == 6.151.13",
"pytest == 8.4.2",
"pytest-asyncio == 1.1.0",
"pytest-mock == 3.15.1",
Expand Down
6 changes: 6 additions & 0 deletions tests/test_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def test_policy_trigger_all_missed(
) -> None:
"""Test the TriggerAllMissed policy."""
hypothesis.assume(now >= scheduled_tick_time)
# It looks like hypothesis let pylint think it is NoReturn
# pylint: disable-next=unreachable
assert (
TriggerAllMissed().calculate_next_tick_time(
now=now, interval=interval, scheduled_tick_time=scheduled_tick_time
Expand Down Expand Up @@ -118,6 +120,8 @@ def test_policy_skip_missed_and_resync(
"""Test the SkipMissedAndResync policy."""
hypothesis.assume(now >= scheduled_tick_time)

# It looks like hypothesis let pylint think it is NoReturn
# pylint: disable-next=unreachable
next_tick_time = SkipMissedAndResync().calculate_next_tick_time(
now=now, interval=interval, scheduled_tick_time=scheduled_tick_time
)
Expand Down Expand Up @@ -214,6 +218,8 @@ def test_policy_skip_missed_and_drift(
"""Test the SkipMissedAndDrift policy."""
hypothesis.assume(now >= scheduled_tick_time)

# It looks like hypothesis let pylint think it is NoReturn
# pylint: disable-next=unreachable
next_tick_time = SkipMissedAndDrift(
delay_tolerance=timedelta(microseconds=tolerance)
).calculate_next_tick_time(
Expand Down
Loading