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-aggressiveto enable aggressive mode fromeradicate, can lead to false positives--eradicate-whitelistto overwrite the whitelist fromeradicate(#separated list)--eradicate-whitelist-extendto 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.3.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for flake8_eradicate-1.3.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 85a71e0c5f4e07f7c6c5fec520483561fd6bd295417d622855bdeade99242e3d |
|
| MD5 | ed15285a7ccb035ef3fb07d840546e3a |
|
| BLAKE2-256 | f1970663c057ff273d37436737c21ed6afde59679eff93c8d8aca4d08ec8c3c6 |