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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8-eradicate-0.2.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.5 Darwin/18.6.0

File hashes

Hashes for flake8-eradicate-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b693e9dfe6da42dbc7fb75af8486495b9414d1ab0372d15efcf85a2ac85fd368
MD5 b18f3b7d88c21b911ae85d40399d2efd
BLAKE2b-256 501ed440794e09c5ec61f004400ff925bf84d03d6a6746956aa8a320cc7a9e15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_eradicate-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b0bcdbb70a489fb799f9ee11fefc57bd0d3251e1ea9bdc5bf454443cccfd620c
MD5 9edb4225f6386925a76b768d37eb89f2
BLAKE2b-256 30532ebc6b4a5358ed325e4b5196feca5e804e2660dfb01512832e6ef029ce05

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