Flake8 plugin to find commented out code
Project description
flake8-eradicate
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 fromeradicate
, can lead to false positives--eradicate-whitelist
to overwrite the whitelist fromeradicate
(#
separated list)--eradicate-whitelist-extend
to extend the whitelist fromeradicate
(#
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):
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-eradicate-1.2.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for flake8_eradicate-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51dc660d0c1c1ed93af0f813540bbbf72ab2d3466c14e3f3bac371c618b6042f |
|
MD5 | 89e85911d4155919b41c1d02334dfe4c |
|
BLAKE2b-256 | facd3ed4405181efe786912fa5b1fdd5305711384d54b9ad431450b2b365dc46 |