From 72b25dcbaa5695d24eb2aeaf6a5cb4443ed76a67 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 10 Dec 2024 16:11:02 +0100 Subject: [PATCH] Don't document private members --- docs/conf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 33bca04..5d3ec48 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,15 +14,16 @@ # import os import sys -import re +import tomllib sys.path.insert(0, os.path.abspath("../")) def get_version(): - with open("../fido2/__init__.py", "r") as f: - match = re.search(r"(?m)^__version__\s*=\s*['\"](.+)['\"]$", f.read()) - return match.group(1) + with open("../pyproject.toml", "rb") as f: + pyproject = tomllib.load(f) + + return pyproject["tool"]["poetry"]["version"] # -- Project information ----------------------------------------------------- @@ -198,7 +199,6 @@ def get_version(): "undoc-members", "show-inheritance", "show-module-summary", - "special-members", "imported-members", ] autoapi_ignore = ["*/fido2/hid/*", "*/fido2/win_api.py"]