Skip to content

[ENH]: Add way to automatically fix flake8 errors #27588

Closed
@dstansby

Description

@dstansby

Problem

When I'm developing, I'll often get flake8 errors, e.g.:

flake8...................................................................Failed
- hook id: flake8
- exit code: 1

lib/matplotlib/tests/test_colors.py:597:49: E231 missing whitespace after ','
lib/matplotlib/tests/test_colors.py:602:1: E302 expected 2 blank lines, found 1

It's quite annoying to have to go through and manually fix these, when it looks like they could easily be automatically fixed.

Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions