flake8-colors

ANSI colors highlight for Flake8

MIT License

Downloads
118.2K
Stars
14
Committers
4

flake8-colors

ANSI colors highlight for Flake8

Update 1: This project is looking for maintainers!

Please open an issue if you can handle this.

Update 2: flake8-colors is going to become a part of (or be replaced by a new functionality in) flake8 itself.

Please see this issue: https://github.com/PyCQA/flake8/issues/1379

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!

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.

Package Rankings
Top 5.3% on Pypi.org
Top 45.16% on Conda-forge.org