Troubleshooting & FAQ¶
Common errors¶
Git are not installed on this machine.¶
--repo-url requires the git executable to be on your PATH. Install Git or use a local path / PyPI package instead.
There are no .py files in the directory being checked.¶
The target directory contains no Python files, or all of them were excluded. Check the excluded patterns in your configuration.
Directory not found: <path>¶
The positional path does not exist. Verify the path or omit it to scan the current directory.
Not a directory: <path>¶
The positional path points to a file. Pass the containing directory instead.
A module appears under “Skipped modules”¶
The file could not be parsed (syntax error, invalid encoding, …). The panel shows the module and the underlying reason. Fix the syntax error to include it again.
FAQ¶
Why do I see no output?
If ci = true is set in your configuration (or --ci is passed) all output is suppressed by design. Remove the flag or the config entry to see the report.
How is a docstring considered special or epic?
It depends on the keywords it contains. special requires parameter-style keywords (Args:, :param, …), while epic requires advanced sections (Raises:, Examples:, …). See Configuration.
Can I scan a package without installing it?
Yes — use --pypi-package. The package is downloaded to the cache directory and never installed into your environment.
How do I fail a CI build on low docstring quality?
Run with --ci and set failure_level (and the thresholds) to taste. See Thresholds & CI Mode.
Where are the cache and logs stored?
Under ~/.cache/docstr-health/ (repos/ and logs/). Use --cache-dir to relocate the cache.
Still stuck?¶
Open an issue on GitHub with the full command you ran, the output, and your environment (Python version and OS).