flake8-colors 0.1.9


pip install flake8-colors

  Latest version

Released: Nov 16, 2020

Project Links

Meta
Author: Andrew Dunai

Classifiers

Framework
  • Flake8

Environment
  • Console

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python
  • Python :: 2
  • Python :: 3

Topic
  • Software Development :: Libraries :: Python Modules
  • Software Development :: Quality Assurance

flake8-colors

ANSI colors highlight for Flake8

Installation

  1. Install plugin:

    pip install flake8-colors
    
  2. Use the following example format in your .flake8 file:

    format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
    
  3. Enjoy!

Example image

Usage

There are three forms of tags:

  • ${COLOR}
  • ${COLOR_MODIFIER}
  • ${TAG}

Colors:

  • black
  • red
  • green
  • yellow
  • blue
  • purple
  • cyan
  • white

Modifiers:

  • fg
  • bold
  • underline
  • bg

Tags:

  • bold
  • underline
  • reset

Credits

Inspired by flake8-format-ansi

Contribution

Just do whatever you want to do.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
flake8 (>3.0.0)