flake8-json
JSON Formatting Reporter plugin for Flake8
What it is and what it does
Flake8-JSON is a Flake8 plugin that converts linting output into machine-readable JSON format instead of the default text report. It offers three output modes: compact JSON, pretty-printed JSON, and CodeClimate-compatible format. The plugin has no runtime dependencies and integrates directly into Flake8's formatter system via command-line flags. It's useful when you need to parse linting results programmatically—for CI/CD pipelines, dashboards, or integration with other tools—rather than reading human-friendly text output.
The package is classified as production-stable and supports Python 3.6 and later. It has been maintained since 2017 and receives occasional updates. The repository is active but the maintainers are explicitly seeking additional contributors, which may indicate resource constraints rather than abandonment.
Use it for:
- Parse Flake8 violations in CI/CD pipelines to fail builds or report metrics based on structured data.
- Feed linting results into dashboards or monitoring systems that consume JSON.
- Integrate Flake8 output with CodeClimate or similar code-quality platforms.
- Programmatically analyze and aggregate linting violations across multiple files or projects.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Flake8 plugin that formats linting output as JSON, with options for pretty-printed or CodeClimate-compatible formats.
Yes, if you need JSON-formatted Flake8 output for automation or tooling integration. The plugin is stable, has no dependencies, and installs easily. The caveat: the project is seeking maintainers, so long-term support is uncertain; if you depend on active development or rapid bug fixes, verify the maintainer situation first.
Install
flake8-json on PyPI
pip
pip install flake8-jsonuv
uv add flake8-jsonpoetry
poetry add flake8-jsonInstalling flake8-json
Before you install
Low friction: pure Python wheel with no runtime dependencies. Last commit was recent (2026-07-13) and repo is active, though the project is explicitly seeking maintainers.
License in practice
MIT license is permissive and imposes no restrictions on use or distribution in proprietary or open-source projects.
Quickstart
pip install flake8-json
flake8 --format=json path/to/code.py
# or for pretty-printed output:
flake8 --format=json-pretty path/to/code.py
Verify before relying
- Whether CodeClimate format support (added in v20.12.0) is fully maintained or has known compatibility issues with current CodeClimate versions.
- Whether the project's active search for maintainers signals ongoing stability concerns or is routine maintenance rotation.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 846 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,104/month — #14,751 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flake8_json-24.4.0-py2.py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
flake8-gl-codeclimateA Flake8 formatter that outputs linting results…
permissive · top 15,000 on PyPI
flake8-formatter-junit-xmlFormats flake8 linting output as JUnit XML,…
permissive · top 15,000 on PyPI
flake8Flake8 is a command-line tool that combines…
permissive · top 1,000 on PyPI
python-json-loggerFormats Python logging output as JSON, making…
permissive · top 1,000 on PyPI
flake8-pyiA Flake8 plugin that lints Python type stub…
permissive · top 5,000 on PyPI
flake8-commasA flake8 plugin that enforces trailing comma…
permissive · top 15,000 on PyPI
flake8-printA flake8 plugin that detects print statements…
permissive · top 5,000 on PyPI
flake8-deprecatedA flake8 plugin that detects calls to…
copyleft · top 15,000 on PyPI
flake8-eradicateA flake8 plugin that detects commented-out code…
permissive · top 15,000 on PyPI
flake8-junit-reportConverts flake8 linting output to JUnit XML…
permissive · top 15,000 on PyPI