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.1.0.tar.gz
.
File metadata
- Download URL: flake8-eradicate-1.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.9 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5917d6dbca352efcd10c15fdab9c55c48f0f26f6a8d47898b25d39101f170a8 |
|
MD5 | 960da162e0bce61edb40697a68691b61 |
|
BLAKE2b-256 | 8a01f8de2348a1aadc9304d6c1ecd7e259a2be43bd32f3435980b6c622200816 |
File details
Details for the file flake8_eradicate-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_eradicate-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.9 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e39b684a37c257a53cda817d86e2d96c9ba3450ddc292742623a5dfee04d9e |
|
MD5 | fcd4794a7637cd51cbc7162b6df160cf |
|
BLAKE2b-256 | 72092c1c6e80b209069ccff8c18e96008a29aeae058daf54db4259d4299ad387 |