---
name: flake8
description: "Use when adopting Flake8 to assess this standard: Enforce a shared Python lint profile"
---

# Apply Flake8

Combine Pyflakes, style checks and complexity limits through one project configuration. Review new findings with the exact plugin versions used in CI.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Flake8.
2. Use Flake8 in this repository to meet this standard: Enforce a shared Python lint profile. Combine Pyflakes, style checks and complexity limits through one project configuration. Review new findings with the exact plugin versions used in CI. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://flake8.pycqa.org/) for configuration and prerequisites.

## Tool invocation

```
flake8 .
```
