Skip to content

v0.1.8

Latest

Choose a tag to compare

@t0kubetsu t0kubetsu released this 15 May 13:17
· 2 commits to master since this release
26e6e01

What's changed

Added

  • mailvalidator/constants.py — new module exposing SMTP_DEFAULT_PORT, DNS_TIMEOUT, SMTP_TIMEOUT, and HTTP_TIMEOUT constants.
  • pytest-mock>=3.12 added to dev extras.

Changed

  • models: FullReport deprecated alias removed; use MailReport directly.
  • assessor: assess() parameters after the first positional are now keyword-only (enforced by *,).
  • cli: check command gains a --timeout / -T option (default 5.0 s); exit code 1 is now raised when the calculated grade is D or F.
  • reporter: injectable console parameter on all print_* functions; Console created with highlight=False; save_report() raises ValueError for unsupported extensions.
  • print_verdict signature changed from (actions, grade) to (report, *, console=None) — verdict actions and grade are now extracted internally.
  • verdict: VerdictSeverity gains LOW (1 pt) and INFO (0 pt) members, aligning the enum with headersvalidator.

Impact

Harmonization pass 2. Migration: rename FullReportMailReport 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