Prepare the formatter to receive input. This defaults to initializing :attr:`output_fd` if :attr:`filename`
(self)
| 74 | """ |
| 75 | |
| 76 | def start(self) -> None: |
| 77 | """Prepare the formatter to receive input. |
| 78 | |
| 79 | This defaults to initializing :attr:`output_fd` if :attr:`filename` |
| 80 | """ |
| 81 | if self.filename: |
| 82 | dirname = os.path.dirname(os.path.abspath(self.filename)) |
| 83 | os.makedirs(dirname, exist_ok=True) |
| 84 | self.output_fd = open(self.filename, "a") |
| 85 | |
| 86 | def handle(self, error: Violation) -> None: |
| 87 | """Handle an error reported by Flake8. |
no outgoing calls