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
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-0.2.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for flake8_eradicate-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c18fe2d14c2e310c38d089f325e28680cd99fa676e7cd3725e498bfd4f52e5d |
|
MD5 | 68f0db5467723cbc7777ad821f959c50 |
|
BLAKE2b-256 | c0e58c0ca18483bba69e5234f0a7e7e3a632925a4ae4a20f35a99e2db1290e09 |