What's changed
Added
mailvalidator/constants.py— new module exposingSMTP_DEFAULT_PORT,DNS_TIMEOUT,SMTP_TIMEOUT, andHTTP_TIMEOUTconstants.pytest-mock>=3.12added to dev extras.
Changed
models:FullReportdeprecated alias removed; useMailReportdirectly.assessor:assess()parameters after the first positional are now keyword-only (enforced by*,).cli:checkcommand gains a--timeout / -Toption (default5.0 s); exit code1is now raised when the calculated grade is D or F.reporter: injectableconsoleparameter on allprint_*functions;Consolecreated withhighlight=False;save_report()raisesValueErrorfor unsupported extensions.print_verdictsignature changed from(actions, grade)to(report, *, console=None)— verdict actions and grade are now extracted internally.verdict:VerdictSeveritygainsLOW(1 pt) andINFO(0 pt) members, aligning the enum withheadersvalidator.
Impact
Harmonization pass 2. Migration: rename FullReport → MailReport in any code that imported it directly. The --timeout flag is a new addition with no breaking effect.
Full changelog: https://github.com/NC3-TestingPlatform/mailvalidator/blob/master/CHANGELOG.md