A module has no docstring

tx0/python:undocumented-modulestrictnotestyle

What it finds

A docstring at the top of a module says what it is for; help(), documentation tools and editors show it. Empty files, __init__.py, __main__.py, stubs and test files are not checked. The finding is placed at the start of the file, so that code added above the first line does not move it.

From the rule's source, undocumented_module.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/python:undocumented-module" = "note"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

# tx0: ignore[tx0/python:undocumented-module] reason="..."

tx0 explain tx0/python:undocumented-module shows the same in the terminal. Found a false positive? Report it.