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

Uploaded Source

Built Distribution

flake8_eradicate-0.2.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8-eradicate-0.2.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.4 Darwin/18.6.0

File hashes

Hashes for flake8-eradicate-0.2.3.tar.gz
Algorithm Hash digest
SHA256 a42c501d40b2beb6bcbbcb961169b16a7794b179dcc990cb317c2e655c19e379
MD5 b17abdf11b55b2aaed3944088927c8e3
BLAKE2b-256 5e54671c31ab1e815fcf3e1949afaeeb5ba7a79f584e8748011b9d1ea3cdd407

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_eradicate-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd9baf6428319b946b85964c5ad0fb41d68c8998d40ac4ce73f37b9f41c535be
MD5 7abc1c028709fabfd5e7d911c5958dab
BLAKE2b-256 9e5d22e4439aecc6ab2b16555a058c620c3758a0dcf1e04730deb0ed34629ba8

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