Skip to content

microamp/flake8-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flake8-chart

flake8 stats visualised

Installation

$ pip install flake8-chart

Dependencies

  • click
  • pygal

Help

$ flake8chart --help
Usage: flake8chart [OPTIONS]

Options:
  --chart-type [PIE|BAR]  type of chart (default: 'PIE')
  --chart-title TEXT      title of chart (default: 'flake8 stats')
  --chart-output TEXT     name of SVG file to export (default:
                          'flake8_stats.svg')
  --csv-output TEXT       name of CSV file to export
  --help                  Show this message and exit.

Usage

flake8chart takes the output of flake8 as an input. Make sure the --statistics flag is on with flake8.

$ flake8 --statistics ~/devel/projs/fn.py | \
> flake8chart \
> --chart-type=PIE --chart-output=stats_pie.svg \
> --csv-output=stats.csv

Chart Examples

Versions Tested

  • Python 2.7
  • Python 3.4
  • Python 3.5

License

MIT