Skip to main content

Error highlight plugin for Flake8.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-colors-0.1.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

flake8_colors-0.1.8-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file flake8-colors-0.1.8.tar.gz.

File metadata

  • Download URL: flake8-colors-0.1.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for flake8-colors-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7a2c14ace214e22ba07870e25efc4ccd640f21227de9820482ea73b68343ee96
MD5 cc8307af4de8e2f6050fd7715db9c45c
BLAKE2b-256 1ac874cc71b31c7a9fa42c785e6b009f9ffd6fceda734c4e42e32277df7a7de6

See more details on using hashes here.

File details

Details for the file flake8_colors-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: flake8_colors-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for flake8_colors-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b63b81bd7edf45ed4d9ac1d144b5fdcf60f6dffd1f4e6b066aaf5e77fe055af3
MD5 1726b2fac304c1152fe9f876f30c54b8
BLAKE2b-256 b777a2b4ad29f81981f9ac2a2b312e2e7adc0f1ba6912a3e7c0d73fa3a981075

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page