Skip to main content

review.coding.Problem

review.coding.Problem(path, line, message)

One thing that fails a check, printed as path:line: message.

Attributes

Name Type Description
path str The file, relative to the project root.
line int The line, from 1.
message str What is wrong.

Examples

from babregen.review.coding import Problem

print(Problem("regen/runs/x/coding/proposals/r.toml", 7, "no file report.md").format())
regen/runs/x/coding/proposals/r.toml:7: no file report.md

Methods

Name Description
format The problem as path:line: message.

format

review.coding.Problem.format()

The problem as path:line: message.