There are a couple of stuff that would be worth checking, including but not limited to:
- the usage of
from __future__ import annotations, should be enabled on all python files
- the function
warnings.warn() should never be called outside of the function pydoctor.utils.warn() to ensure that exit code reflect the triggered warnings