Skip to main content

Flake8 plugin to find commented out code

Project description

flake8-eradicate

wemake.services Build Status Coverage Python Version PyPI version wemake-python-styleguide

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 from eradicate, 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):

flake8-eradicate output

License

MIT.

Project details


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.4.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

flake8_eradicate-0.4.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file flake8-eradicate-0.4.0.tar.gz.

File metadata

  • Download URL: flake8-eradicate-0.4.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/18.6.0

File hashes

Hashes for flake8-eradicate-0.4.0.tar.gz
Algorithm Hash digest
SHA256 be5ea4521dfd4cb76837635f9ace57e12a7336c4b82054c99fd0394c00eef8ce
MD5 7ef2bbf300155e5002b45c5eb0da5542
BLAKE2b-256 52b5ad7fce3e56fd4d9ff77ddcd4cebb8568a639bdbbbfa4b94eaae214d22d29

See more details on using hashes here.

File details

Details for the file flake8_eradicate-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_eradicate-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 804a39aef145c193e8d77770efc45df82e631b29c4456ecb5ff2e2e5996cf09a
MD5 b00f0fa1d8b9f80d3ac52f7fbabe26a6
BLAKE2b-256 e3aec45dcc3550b05270b467d8740553696d8036888f339b797a62f5b47b148f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page