use-header-comments (MOD008)#
A Python file starts with comments such as a copyright header.
What it does#
Reports comments at the top of a Python file, before its first statement,
other than a shebang, an encoding line and tool pragmas (pylint:,
noqa:, fmt:, isort:…).
Why is this bad?#
OCA keeps authorship and licence in the manifest and the README; per-file copyright headers go stale and clutter every file.
Fix safety#
Unsafe: the comment lines are removed, which deletes their content.
Opt-in#
ALL does not include this check: many projects require copyright
headers. Enable it with select = ["ALL", "MOD008"] (or its name).