Core API¶
Public classes re-exported from django_doctor.
Check¶
django_doctor.registry.Check
¶
Base class for every analyzer.
Source code in src/django_doctor/registry.py
Finding¶
django_doctor.finding.Finding
dataclass
¶
One actionable item produced by a check.
Keep Findings small and self-contained — they're the unit the reporter renders, the JSON exporter serializes, and the ignore-rules match against.
Source code in src/django_doctor/finding.py
ignore_key
property
¶
Stable key used to silence a finding via config (ignore list).
Severity¶
django_doctor.finding.Severity
¶
Bases: IntEnum
Ordered so comparisons like severity >= Severity.ERROR work.
Source code in src/django_doctor/finding.py
Project¶
django_doctor.registry.Project
dataclass
¶
Handle passed to each check — exposes the Django project under audit.
Kept deliberately small so checks don't grow tangled dependencies on
internals. Extend with lazy properties (@cached_property) rather than
eager imports so each check only pays for what it uses.