Skip to content

Commit

Permalink
Don't document private members
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Dec 10, 2024
1 parent 9975983 commit 72b25dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 -----------------------------------------------------
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 72b25dc

Please sign in to comment.