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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flake8_eradicate-1.5.0.tar.gz.
File metadata
- Download URL: flake8_eradicate-1.5.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee636cb9ecb5594a7cd92d67ad73eb69909e5cc7bd81710cf9d00970f3983a6
|
|
| MD5 |
e2aca5337289e2279b3463365e2c0169
|
|
| BLAKE2b-256 |
9e72a3975dfa4287396e9fb8fc2b4ee94a80d0809babbf92abed5af9c8e29c95
|
File details
Details for the file flake8_eradicate-1.5.0-py3-none-any.whl.
File metadata
- Download URL: flake8_eradicate-1.5.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18acc922ad7de623f5247c7d5595da068525ec5437dd53b22ec2259b96ce9d22
|
|
| MD5 |
beb8d8bcf1f27b152c6077cd1bdccda2
|
|
| BLAKE2b-256 |
e2a91319b9e5eeb7d948f6db0b0ed4209bae0ec12d30ab3ee43a0ac1d8ce455f
|