Skip to main content

Flake8 plugin to find commented out code

Project description

flake8-eradicate

wemake.services Build Status codecov 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
  • --eradicate-whitelist to overwrite the whitelist from eradicate (# separated list)
  • --eradicate-whitelist-extend to extend the whitelist from eradicate (# 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):

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

Uploaded Source

Built Distribution

flake8_eradicate-1.4.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8-eradicate-1.4.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.0 Darwin/18.7.0

File hashes

Hashes for flake8-eradicate-1.4.0.tar.gz
Algorithm Hash digest
SHA256 3088cfd6717d1c9c6c3ac45ef2e5f5b6c7267f7504d5a74b781500e95cb9c7e1
MD5 a144d2aeedbf2efabde60d0a2587513c
BLAKE2b-256 746af99a1f021804d2c4a0f880218e34fc2f21a0727b9780d8f4e2ffb45f0326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_eradicate-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3bbd0871be358e908053c1ab728903c114f062ba596b4d40c852fd18f473d56
MD5 6a7c817df4b0168b97ad864708c04f0f
BLAKE2b-256 e89e1674276f308062d978787efc7785cb7582d8edb7b25af754053c95b54540

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