from spotregen import Finding
from spotregen.gui.model import finding_location
finding = Finding("error", "ARCH01", "src/a.py", "bad", path="src/a.py", line=3)
print(finding_location(finding, "/repo"))Location(label='src/a.py:3', path=PosixPath('/repo/src/a.py'), line=3)