flake8-eradicate 1.5.0


pip install flake8-eradicate

  Latest version

Released: May 31, 2023


Meta
Author: Nikita Sobolev
Requires Python: >=3.8,<4.0

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Framework
  • Flake8

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11

Topic
  • Software Development :: Libraries :: Python Modules
  • Software Development :: Quality Assurance

flake8-eradicate

wemake.services Build Status codecov Python Version PyPI version wemake-python-styleguide

flake8 plugin to find commented out (or so called "dead") code.

This is quite important for the project in a long run. Based on eradicate project.

Installation

pip install flake8-eradicate

It is also a valuable part of wemake-python-styleguide.

Usage

Run your flake8 checker as usual. Commented code should raise an error.

Example:

flake8 your_module.py

Options

  • --eradicate-aggressive to enable aggressive mode from eradicate, can lead to false positives
  • --eradicate-whitelist to overwrite the whitelist from eradicate (# separated list)
  • --eradicate-whitelist-extend to extend the whitelist from eradicate (# separated list)

Error codes

Error code Description
E800 Found commented out code

Output example

Here's how output looks like (we are using wemake formatter):

flake8-eradicate output

License

MIT.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
attrs
eradicate (<3.0,>=2.0)
flake8 (>5)