skillfed

flake8-deprecated

Warns about deprecated method calls

flake8-deprecated v2.3.0 83.9K downloads/30d#14,045 on PyPI21
Copyleft license GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and… (full text in the JSON record) AGING released

What it is and what it does

flake8-deprecated is a linting plugin that integrates with flake8 to identify deprecated method calls in your Python code. It runs as part of your normal flake8 checks and flags lines where deprecated APIs are used, offering guidance on what to use instead. The plugin helps teams stay aligned with evolving best practices by catching outdated patterns during code review rather than at runtime.

It works by registering as a flake8 extension and checking your code against a built-in list of known deprecations. The plugin requires only flake8 as a dependency and installs as a pure Python wheel, making it lightweight to add to existing linting workflows. It supports Python 3.10 and later, including PyPy3.

Use it for:

  • Enforce code modernization in CI/CD pipelines by failing builds when deprecated methods are detected.
  • Guide developers toward current best practices during code review by highlighting deprecated API usage.
  • Maintain compatibility with evolving library versions by catching deprecated calls before they break.
  • Audit legacy codebases to identify which deprecated patterns need refactoring.
  • Integrate deprecation checking into pre-commit hooks to catch issues before commits.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A flake8 plugin that detects calls to deprecated methods and suggests their modern replacements during code linting.

Yes, if you use flake8 and want automated detection of deprecated method calls. The plugin is lightweight, has no complex dependencies, and integrates seamlessly into existing linting workflows. The aging maintenance status is a minor concern but not a blocker—the code is stable and the repository remains active. GPLv2 copyleft licensing requires careful consideration if you distribute proprietary software.

Install

flake8-deprecated on PyPI

pip

pip install flake8-deprecated

uv

uv add flake8-deprecated

poetry

poetry add flake8-deprecated

Installing flake8-deprecated

Before you install

Low friction: pure Python wheel with only flake8 as a runtime dependency. Maintenance is aging (293 days since last release), but the repository remains active and not archived.

License in practice

GPLv2 copyleft license. If you distribute software that uses this plugin, you must make source code available under the same license terms.

Quickstart

pip install flake8-deprecated

from flake8_deprecated import DeprecationChecker
# Integrates automatically with flake8; run flake8 on your code

Requires Python 3.10 or later and flake8 to be installed.

Verify before relying

  • Which specific deprecated methods are currently detected by this plugin.
  • Whether the plugin's deprecation list is user-configurable or fixed.
  • Performance impact on large codebases during linting.
  • What error codes are emitted for different deprecation categories.

Package facts

License GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and… (full text in the JSON record) (copyleft)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — flake8
Maintenance aging — 293 days since the last release
Last repo commit
First released
Downloads 83,862/month — #14,045 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: flake8_deprecated-2.3.0-py3-none-any.whl

Keywords: flake8, pep8, python

Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: Flake8Framework :: PloneIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v2 (GPLv2)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software DevelopmentTopic :: Software Development :: Quality Assurance

Tags

flake8 deprecation checkerdetect deprecated method callspython code quality lintingdeprecation warnings flake8method replacement suggestions
lintingcode-qualitydeprecation-detection

More Software Development packages