flake8-dac

"Group and format flake8's output by the rules codes"


Keywords
flake8, formatter, python
Install
pip install flake8-dac==0.1.0

Documentation

flake8-dac

Tool for formatting flake8's results in more readable way, in case there's a lot of them. The "dac" part in tool's name stands for "divide and conquer".

flake8 output with flake8-dac formatting example

  • Grouped by the type of cause (with number of occurrences).
  • Sorted by the number of occurrences (descending).
  • Information about number of problems.
  • Rich text and formatting.
  • Link to flake8rules.com (where you can find more details about the problem).

after

flake8 output example

before

Installation

pip install flake8-dac

Usage

flake8 [args] | flake8-dac

Why?

I wrote it for myself when I had to implement flake8 into an existing project that had many problems. I find it helpful when I have problems grouped by the same type of cause. I can easily determine which problems I can ignore, and then eliminate the rest. Maybe someone will find it useful too.