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.
# 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
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 functionvalidate_namespace_nametests 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