Registry / testing / flake8-deprecated

flake8-deprecated

JSON →
library2.3.0pypypiunverified

A flake8 plugin that warns about deprecated method calls in Python code. Current version: 2.3.0, compatible with Python >=3.10. Maintained but low release cadence.

pip install flake8-deprecated
INSTALL
IMPORT
SIG · FLAKE8-DEPRECATED
F
flake8-deprecated
testingpythonv2.3.0
Install
1.8s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.3.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.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

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

flake8_deprecated
flake8 registers plugins automatically; no manual import is needed.
The plugin is discovered by flake8 when installed. Incorrect to import directly.

After installing, run flake8 on your code. The plugin adds checks prefixed with 'DA' (Deprecated API).

# Sample code with deprecated calls import os os.getcwd() # Example # Run: flake8 --select=DA mycode.py
Debug
Known issues
gotchaOnly Python >=3.10 is supported as of version 2.3.0. Older Python versions will fail installation.
fix
Upgrade Python to 3.10+ or pin to an older version (e.g., flake8-deprecated==1.4) if needed.
affects: >=2.3.0
gotchaThe plugin only reports deprecated calls that are explicitly listed; it does not detect all forms of deprecation (e.g., missing deprecation warnings in third-party libs).
fix
Supplement with other tools like pylint or bandit for broader deprecated API detection.
affects: all
Upgrade
Version history
2.3.0latest on PyPI · released Oct 25, 2025
Audit
Dependencies
flake8requiredRuns as a plugin; flake8 must be installed and invoked.
Agent activity
4 hits · last 30 days
node
4
Resources
flake8-deprecated — pip install flake8-deprecated · libregistry