Source code for flakeheaven.formatters._baseline

# built-in
from pathlib import Path

# external
from flake8.formatting.base import BaseFormatter

# app
from .._logic import make_baseline


[docs]class BaseLineFormatter(BaseFormatter):
[docs] def format(self, error): filename = error.filename return make_baseline( path=Path(filename), code=error.code, line=error.line_number, context=error.physical_line, )