diff --git a/docs/_scripts/macros.py b/docs/_scripts/macros.py index ff87c71..f84712e 100644 --- a/docs/_scripts/macros.py +++ b/docs/_scripts/macros.py @@ -27,10 +27,7 @@ def _slugify(text: str) -> str: Returns: The slugified text. """ - # The type of the return value is not defined for the markdown library. - # Also for some reason `mypy` thinks the `toc` module doesn't have a - # `slugify_unicode` function, but it definitely does. - return toc.slugify_unicode(text, "-") # type: ignore[attr-defined,no-any-return] + return toc.slugify_unicode(text, "-") def _hook_macros_plugin(env: macros.MacrosPlugin) -> None: diff --git a/mkdocs.yml b/mkdocs.yml index 0cd87a0..d339bef 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -100,7 +100,6 @@ plugins: alias_type: redirect canonical_version: latest - mkdocstrings: - custom_templates: templates default_handler: python handlers: python: diff --git a/pyproject.toml b/pyproject.toml index 1f6e611..06e5d47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "setuptools == 68.1.0", "setuptools_scm[toml] == 7.1.0", - "frequenz-repo-config[lib] == 0.7.5", + "frequenz-repo-config[lib] == 0.8.0", ] build-backend = "setuptools.build_meta" @@ -42,41 +42,41 @@ dev-flake8 = [ "flake8 == 6.1.0", "flake8-docstrings == 1.7.0", "flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml - "pydoclint == 0.3.2", + "pydoclint == 0.3.9", "pydocstyle == 6.3.0", ] -dev-formatting = ["black == 23.9.1", "isort == 5.12.0"] +dev-formatting = ["black == 23.9.1", "isort == 5.13.2"] dev-mkdocs = [ "black == 23.9.1", - "Markdown==3.4.4", + "Markdown==3.5.2", "mike == 2.0.0", "mkdocs-gen-files == 0.5.0", "mkdocs-literate-nav == 0.6.1", - "mkdocs-macros-plugin == 1.0.4", - "mkdocs-material == 9.3.1", - "mkdocstrings[python] == 0.23.0", - "frequenz-repo-config[lib] == 0.7.5", + "mkdocs-macros-plugin == 1.0.5", + "mkdocs-material == 9.5.6", + "mkdocstrings[python] == 0.24.0", + "frequenz-repo-config[lib] == 0.8.0", ] dev-mypy = [ - "mypy == 1.5.1", - "types-Markdown == 3.4.2.10", + "mypy == 1.8.0", + "types-Markdown == 3.5.0.20240129", # For checking the noxfile, docs/ script, and tests "frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]", ] dev-noxfile = [ "nox == 2023.4.22", - "frequenz-repo-config[lib] == 0.7.5", + "frequenz-repo-config[lib] == 0.8.0", ] dev-pylint = [ - "pylint == 3.0.2", + "pylint == 3.0.3", # For checking the noxfile, docs/ script, and tests "frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]", ] dev-pytest = [ "pytest == 7.4.2", - "frequenz-repo-config[extra-lint-examples] == 0.7.5", - "pytest-mock == 3.11.1", - "pytest-asyncio == 0.21.1", + "frequenz-repo-config[extra-lint-examples] == 0.8.0", + "pytest-mock == 3.12.0", + "pytest-asyncio == 0.23.4", "async-solipsism == 0.5", ] dev = [