Squash-merge lib-standardisation: adopt repo standards across packaging, tooling, docs, and CI. - standardize pyproject.toml (canonical packaging, lint config, extras, GSDFC pydoclint) - add py.typed marker, modernize type hints and Google-style docstrings - nest generated docs under docs/lib and docs/mcp; add hand-written wiki - adopt standard Type A PyPI CI pipeline (tag==version guard + quality gate) - promote generated CHANGELOG.md; bump version to 0.0.7
15 lines
387 B
Python
15 lines
387 B
Python
from docforge import GriffeLoader
|
|
|
|
|
|
def test_private_members_excluded(temp_package):
|
|
(temp_package / "priv.py").write_text("""def _hidden(): pass
|
|
def visible(): pass
|
|
""")
|
|
|
|
loader = GriffeLoader()
|
|
project = loader.load_project(["testpkg.priv"])
|
|
module = project.get_module("testpkg.priv")
|
|
|
|
assert "visible" in module.members
|
|
assert "_hidden" not in module.members
|