Skip to main content

pytest plugin to check for commented out code

Project description

[Pytest](http://pytest.org/) plugin for detecting commented out code in python files.

Changes

  • 0.0.4 made eradicate 1.0 compatible, added –agressive (thanks to @avallbona)

Usage

install via:

pip install pytest-eradicate

if you then type:

pytest --eradicate

every file ending in .py will be discovered and checked for commented out code.

There is also the option:

pytest --eradicate --aggressive

make more aggressive changes. This may result in false positives. Added in order to update to the last version of eradicate like it seems to be the default mode.

Eradicate

Eradicate is a tool to detect commented out code in Python files.

[Eradicate Github](https://github.com/myint/eradicate)

As the developer states commented out code has no place in your repository.

Besides that, commented out code is often an indicator for debug statements left behind or code moved out of the way during development.

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

pytest-eradicate-0.0.4.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

pytest_eradicate-0.0.4-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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