Skip to main content

Plugin for EFM-compatible output.

Project description

A plugin for flake8 to print output in a format compatible with Vim’s errorformat (efm).

This lets other tools pick up flake8 errors and identify them as error/warning/etc.

Designed for efm-langserver, but should work on any tool that expects a similar format.


For usage via nvim-lspconfig + efm-langserver use:

local flake8 =  {
  -- Requires flake8-efm
  lintCommand = "flake8 --format efm --stdin-display-name ${INPUT} -",
  lintStdin = true,
  lintIgnoreExitCode = true,
  lintFormats = {


The default error format of flake8 shows an error code and a message, but there’s no obvious way to determine if something is an error or a warning. This is especially true for third-party codes.

For now, the leading code of each letter is mapped to an error level (error/warning/etc). There’s support for _some_ third-party plugins, and patches for others are most welcome.

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-efm-1.0.2.tar.gz (3.2 kB view hashes)

Uploaded source

Built Distribution

flake8_efm-1.0.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page