Registry / testing / flake8-breakpoint

flake8-breakpoint

JSON →
library1.1.0pypypiunverified

A Flake8 plugin that detects forgotten breakpoint() calls (and pdb.set_trace()) in Python code. Version 1.1.0, last updated 2020-04-09, maintenance mode.

pip install flake8-breakpoint
INSTALL
IMPORT
SIG · FLAKE8-BREAKPOINT
F
flake8-breakpoint
testingpythonv1.1.0
Install
1.6s avg
Import
—
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BreakpointChecker
✓ from flake8_breakpoint import BreakpointChecker
✗ from flake8_breakpoint import BreakpointChecker

Install flake8 and the plugin, then run flake8 on a file containing a breakpoint to see the T100 warning.

pip install flake8 flake8-breakpoint echo 'import pdb; pdb.set_trace()' > test.py flake8 test.py
Debug
Known issues
gotchaFlake8 must be installed separately; the plugin alone doesn't run linting.
fix
Install flake8 alongside: pip install flake8 flake8-breakpoint
affects: all
gotchaThe plugin only checks for breakpoint() and pdb.set_trace(), not other debuggers like ipdb or pdb.is_resource().
fix
For custom debuggers, write a custom flake8 plugin or use a tool like 'debug-detector'.
affects: 1.1.0
deprecatedPython 3.6 reached end-of-life; requires Python >=3.6 but may not work with Python 3.10+ due to flake8 updates.
fix
Pin flake8 to a compatible version (<5.0) if on Python 3.6-3.8.
affects: 1.1.0
Upgrade
Version history
1.1.0latest on PyPI · released May 23, 2019
Audit
Dependencies
flake8requiredPlugin is loaded by flake8 automatically
Agent activity
4 hits · last 30 days
node
4
Resources
flake8-breakpoint — pip install flake8-breakpoint · libregistry