flake8-html is a plugin for the flake8 linter that generates an HTML report of code violations, providing a visual and navigable overview of issues. The current version is 0.4.3. It has an infrequent release cadence, primarily updating to maintain compatibility with new versions of flake8.
pip install flake8-htmlNo compatibility data collected yet for this library.
This quickstart demonstrates how to use `flake8-html` via the `flake8` command-line interface. It creates a temporary Python file with a linter violation, runs `flake8` to generate an HTML report, and then cleans up. The `--format=html` and `--htmldir` arguments are essential for generating the report.
Upgrade `flake8-html` to version 0.4.3 or newer: `pip install --upgrade flake8-html`.
Ensure both `flake8` and `flake8-html` are installed using the same `pip` command or within the same active virtual environment: `pip install flake8 flake8-html`.
Always include `--htmldir=<path/to/directory>` in your `flake8` command to specify where the `report.html` file should be saved.
Install `flake8-html` in the same Python environment as `flake8`: `pip install flake8-html`.
Ensure you are using `--htmldir=<path/to/report>` to specify the output directory for the HTML report.
Upgrade `flake8-html` to the latest version to ensure compatibility: `pip install --upgrade flake8-html`.