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
Built Distribution
File details
Details for the file flake8-eradicate-1.0.0.tar.gz
.
File metadata
- Download URL: flake8-eradicate-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.2 CPython/3.7.7 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7167226676823d50cf540532302a6f576c5a398c5260692571a05ef72c5f5b |
|
MD5 | b48ebfd77707032d2439eadeaa165ce8 |
|
BLAKE2b-256 | 4736bb0a20e8b65d15446af309544b58245421ce77fae0d9144fb8f6d977d91c |
File details
Details for the file flake8_eradicate-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_eradicate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.2 CPython/3.7.7 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc4ab858a18c7ed630621b5345254c8f55be6060ea5c44a25e384d613618d1f |
|
MD5 | 4cc044750935b33fa40a143e2b067339 |
|
BLAKE2b-256 | f6bfb7c8f92f3872cfcc5566531e23de063f6fc19d1fd0a60a60f5f99e4f26f7 |