{ } Raw JSON

bundles / papyri 0.0.10 / papyri / error_collector / DiagnosticConfig / from_raw

classmethod

papyri.error_collector:DiagnosticConfig.from_raw

source: /papyri/error_collector.py:244

Summary

Build from the [global.diagnostics] TOML table.

Extended Summary

Scalar entries are global code overrides; the per-target (or per_target) sub-table maps a glob to a {code: severity} table. Unknown codes and bad severities raise ValueError so a typo in the config fails the run loudly rather than silently doing nothing.

Aliases

  • papyri.error_collector.DiagnosticConfig.from_raw