diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f6f6939..6efa8781 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,6 @@ ci: autoupdate_schedule: quarterly skip: - check-poetry - - toml-sort - pylint - pyright - pyright-verifytypes @@ -97,14 +96,12 @@ repos: rev: v1.0.0 hooks: - id: check-poetry + - repo: https://github.com/pappasam/toml-sort + rev: v0.23.1 + hooks: + - id: toml-sort-fix - repo: local hooks: - - id: toml-sort - name: toml-sort - entry: toml-sort - language: system - types: [toml] - pass_filenames: true - id: pylint name: pylint entry: pylint diff --git a/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja b/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja index 6a215bfc..c60bae4e 100644 --- a/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja +++ b/docs/_templates/mkdocstrings/python/readthedocs/children.html.jinja @@ -127,7 +127,7 @@ Context: {% endif %} {% with heading_level = heading_level + extra_level %} {% for attribute in attributes|order_members(config.members_order, members_list) %} - {% if members_list is not none or attribute.is_public(check_name=False) %} + {% if members_list is not none or attribute.is_public %} {% include attribute|get_template with context %} {% endif %} {% endfor %} @@ -147,7 +147,7 @@ Context: {% endif %} {% with heading_level = heading_level + extra_level %} {% for class in classes|order_members(config.members_order, members_list) %} - {% if members_list is not none or class.is_public(check_name=False) %} + {% if members_list is not none or class.is_public %} {% include class|get_template with context %} {% endif %} {% endfor %} @@ -168,7 +168,7 @@ Context: {% with heading_level = heading_level + extra_level %} {% for function in functions|order_members(config.members_order, members_list) %} {% if not (obj.kind.value == "class" and function.name == "__init__" and config.merge_init_into_class) %} - {% if members_list is not none or function.is_public(check_name=False) %} + {% if members_list is not none or function.is_public %} {% include function|get_template with context %} {% endif %} {% endif %} @@ -190,7 +190,7 @@ Context: {% endif %} {% with heading_level = heading_level + extra_level %} {% for module in modules|order_members(config.members_order, members_list) %} - {% if members_list is not none or module.is_public(check_name=False) %} + {% if members_list is not none or module.is_public %} {% include module|get_template with context %} {% endif %} {% endfor %} @@ -214,7 +214,7 @@ Context: {% if not (obj.is_class and child.name == "__init__" and config.merge_init_into_class) %} - {% if members_list is not none or child.is_public(check_name=False) %} + {% if members_list is not none or child.is_public %} {% if child.is_attribute %} {% with attribute = child %} {% include attribute|get_template with context %} diff --git a/pyproject.toml b/pyproject.toml index e3fb3a6e..54b7f798 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = "poetry.core.masonry.api" -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=1.9.0"] [tool] @@ -93,7 +93,7 @@ zeroconf = "^0.132.2" [tool.poetry.group.dev.dependencies] docformatter = {extras = ["tomli"], version = "1.7.5"} -docutils = "^0.20" +docutils = "^0.20" # TODO: remove this when the minimum Python version is >=3.9 docutils-stubs = "^0.0.22" matplotlib = [ {python = ">=3.9", version = "^3.8"},