missing-init¶
Part of: Coverage Check
| Check | coverage |
| Category | required |
| Applies to | directories |
| Since | v1.0.0 |
Directory in source tree lacks init.py file
What it detects¶
This rule flags directories in your source tree that contain Python files but lack an __init__.py file.
Why is this a problem?¶
Without an __init__.py, the directory is not recognized as a Python package by documentation generators like mkdocstrings. All Python files in that directory become invisible to your docs site — they won't appear in auto-generated API documentation, even though they may be importable at runtime via implicit namespace packages.