# PyCQA/flake8-bugbear

A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.

Repository: https://github.com/PyCQA/flake8-bugbear
Canonical: https://ross.abutalabs.com/products/flake8-bugbear
Language: Python
License: MIT
License Family: permissive
Topics: code-quality, linter, linter-plugin, linter-flake8
Last push: 2026-09-02T01:48:18+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 47, longevity 100
- inputs: {"age_days": 3823, "days_push": 1, "days_rel": 277, "gap_med": 41, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1116, forks 124 (observed 2026-09-03T02:15:07.125240+00:00)

## What it is
flake8-bugbear is a plugin for the Flake8 linter that adds checks for likely bugs and design problems in Python code. It provides opinionated warnings that don't fit in pyflakes or pycodestyle, such as bare excepts and unreliable callable checks.

## Use cases
- find likely bugs in python code
- add extra lint rules to flake8
- catch bare except and other python pitfalls
- enforce code quality checks in ci
- lint python projects with opinionated rules

## When to choose
- you already use flake8 and want more bug-focused checks
- you want opinionated lint rules without modifying core tools
- you need extra static analysis for python design problems

## When to avoid
- you don't use flake8 as your linter
- you only want PEP 8 style checking
- you need type checking rather than linting

## Facets
- artifact type: plugin
- maturity: active
- function: linter, code-review, developer-tools
- domain: developer-tools, testing
- platform: python, cli, cross-platform
- tags: flake8, code-quality, static-analysis, bug-detection, linting-plugin, python

## Member repositories
- PyCQA/flake8-bugbear (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:07.125240+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:41:56.481937+00:00, confidence not recorded.
  - readme: https://github.com/PyCQA/flake8-bugbear (fetched 2026-09-03T02:15:07.125240+00:00, sha 6a6c83b4d6a8)
  - registry_pypi: https://pypi.org/pypi/flake8-bugbear/json (fetched 2026-08-29T12:45:53.513650+00:00, sha d29164b07e34)
- Data as of 2026-08-30T08:39:29.467469+00:00.
