format
- IpynbFormatter.format(violation: Violation) str | None [source]
Format the error detected by a flake8 checker.
Depending on if the violation was caused by a
*.py
file or by a parsed notebook.- Parameters:
violation (Violation) – Error a checker reported.
- Returns:
Formatted error message, which will be displayed in the terminal.
- Return type:
str | None