Fix(python-generator): ignore invalid namespaces #61

Merged
jakob.scheid merged 5 commits from fix/ignore-invalid-python-namespaces into main 2026-10-04 17:19:13 +02:00
Owner

Ignore invalid namespaces

This pull request adds a validation for namespace names to the Python documentation generator. Packages and modules which without a valid namespace name are now ignored and not included in the documentation. The validation step was added to the Python namespace class (PythonNamespace). It uses the new function validate_namespace_name tests were also added for. To ensure correct behavior, test modules and packages with invalid names were added to the Python documentation generator test project directories. A changelog entry for invalid namespace name ignoring and one for the stricter namespace name validation were added to the changelog.

Related issues

Closes #59

# Ignore invalid namespaces This pull request adds a validation for namespace names to the Python documentation generator. Packages and modules which without a valid namespace name are now ignored and not included in the documentation. The validation step was added to the Python namespace class (`PythonNamespace`). It uses the new function `validate_namespace_name` tests were also added for. To ensure correct behavior, test modules and packages with invalid names were added to the Python documentation generator test project directories. A changelog entry for invalid namespace name ignoring and one for the stricter namespace name validation were added to the changelog. ## Related issues Closes #59
jakob.scheid added this to the 0.2.1 milestone 2026-10-04 17:15:51 +02:00
jakob.scheid added 5 commits 2026-10-04 17:15:52 +02:00
Added more strict validation for namespaces names to PythonNamespace
than before and updated error messages.
All tests depending on this were updated to the new behavior.
Python modules or packages are now ignored if their name is not a valid
Python namespace name.
jakob.scheid added this to the Project Board project 2026-10-04 17:16:19 +02:00
jakob.scheid moved this to Review in Project Board on 2026-10-04 17:16:21 +02:00
jakob.scheid merged commit 1ccb610310 into main 2026-10-04 17:19:13 +02:00
jakob.scheid deleted branch fix/ignore-invalid-python-namespaces 2026-10-04 17:19:13 +02:00
jakob.scheid moved this to Done in Project Board on 2026-10-04 17:19:18 +02:00
Sign in to join this conversation.